Changeset 08e103d4 in mainline for kernel/arch


Ignore:
Timestamp:
2019-02-05T18:26:05Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
1d2f85e
Parents:
d066259
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 16:16:55)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 18:26:05)
Message:

Use clearer naming for string length functions

This and the following commit change the names of functions, as well as
their documentation, to use unambiguous terms "bytes" and "code points"
instead of ambiguous terms "size", "length", and "characters".

Location:
kernel/arch
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/amd64.c

    rd066259 r08e103d4  
    185185
    186186        sysinfo_set_item_data("platform", NULL, (void *) platform,
    187             str_size(platform));
     187            str_bytes(platform));
    188188
    189189#ifdef CONFIG_PC_KBD
  • kernel/arch/arm32/src/arm32.c

    rd066259 r08e103d4  
    113113
    114114        sysinfo_set_item_data("platform", NULL, (void *) platform,
    115             str_size(platform));
     115            str_bytes(platform));
    116116}
    117117
  • kernel/arch/ia32/src/ia32.c

    rd066259 r08e103d4  
    170170
    171171        sysinfo_set_item_data("platform", NULL, (void *) platform,
    172             str_size(platform));
     172            str_bytes(platform));
    173173
    174174#ifdef CONFIG_PC_KBD
  • kernel/arch/ia64/src/ia64.c

    rd066259 r08e103d4  
    156156#endif
    157157        sysinfo_set_item_data("platform", NULL, (void *) platform,
    158             str_size(platform));
     158            str_bytes(platform));
    159159
    160160#ifdef MACHINE_ski
  • kernel/arch/mips32/src/mips32.c

    rd066259 r08e103d4  
    155155        sysinfo_set_item_data("platform", NULL,
    156156            (void *) machine_get_platform_name(),
    157             str_size(machine_get_platform_name()));
     157            str_bytes(machine_get_platform_name()));
    158158
    159159        machine_input_init();
  • kernel/arch/ppc32/src/ppc32.c

    rd066259 r08e103d4  
    281281
    282282        sysinfo_set_item_data("platform", NULL, (void *) platform,
    283             str_size(platform));
     283            str_bytes(platform));
    284284
    285285        ofw_tree_walk_by_device_type("mac-io", macio_register, NULL);
  • kernel/arch/sparc64/src/sun4u/sparc64.c

    rd066259 r08e103d4  
    127127
    128128        sysinfo_set_item_data("platform", NULL, (void *) platform,
    129             str_size(platform));
     129            str_bytes(platform));
    130130
    131131        standalone_sparc64_console_init();
  • kernel/arch/sparc64/src/sun4v/sparc64.c

    rd066259 r08e103d4  
    125125
    126126        sysinfo_set_item_data("platform", NULL, (void *) platform,
    127             str_size(platform));
     127            str_bytes(platform));
    128128
    129129        niagarain_init();
Note: See TracChangeset for help on using the changeset viewer.