Changeset 08e103d4 in mainline for uspace/lib/c/generic/io/log.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/lib/c/generic/io/log.c

    rd066259 r08e103d4  
    8989        aid_t reg_msg = async_send_2(exchange, LOGGER_WRITER_MESSAGE,
    9090            log, level, NULL);
    91         errno_t rc = async_data_write_start(exchange, message, str_size(message));
     91        errno_t rc = async_data_write_start(exchange, message, str_bytes(message));
    9292        errno_t reg_msg_rc;
    9393        async_wait_for(reg_msg, &reg_msg_rc);
     
    144144        char *end_ptr;
    145145        int level_int = strtol(name, &end_ptr, 0);
    146         if ((end_ptr == name) || (str_length(end_ptr) != 0))
     146        if ((end_ptr == name) || (str_code_points(end_ptr) != 0))
    147147                return EINVAL;
    148148        if (level_int < 0)
     
    199199        aid_t reg_msg = async_send_1(exchange, LOGGER_WRITER_CREATE_LOG,
    200200            parent, &answer);
    201         errno_t rc = async_data_write_start(exchange, name, str_size(name));
     201        errno_t rc = async_data_write_start(exchange, name, str_bytes(name));
    202202        errno_t reg_msg_rc;
    203203        async_wait_for(reg_msg, &reg_msg_rc);
Note: See TracChangeset for help on using the changeset viewer.