Changeset 08e103d4 in mainline for uspace/app/taskdump/elf_core.c


Ignore:
Timestamp:
2019-02-05T18:26:05Z (6 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".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/taskdump/elf_core.c

    rd066259 r08e103d4  
    177177        p_hdr[0].p_paddr = 0;
    178178        p_hdr[0].p_filesz = sizeof(elf_note_t) +
    179             ALIGN_UP((str_size("CORE") + 1), word_size) +
     179            ALIGN_UP((str_bytes("CORE") + 1), word_size) +
    180180            ALIGN_UP(sizeof(elf_prstatus_t), word_size);
    181181        p_hdr[0].p_memsz = 0;
     
    230230         * Write note header
    231231         */
    232         note.namesz = str_size("CORE") + 1;
     232        note.namesz = str_bytes("CORE") + 1;
    233233        note.descsz = sizeof(elf_prstatus_t);
    234234        note.type = NT_PRSTATUS;
Note: See TracChangeset for help on using the changeset viewer.