Changeset bf61d3a in mainline for uspace/app/stats/stats.c


Ignore:
Timestamp:
2010-11-26T01:34:21Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
273b958
Parents:
4b9a410 (diff), 7e752b2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge compile-time printf() argument checking, fixes of actual printf() arguments and related modifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/stats/stats.c

    r4b9a410 rbf61d3a  
    5656       
    5757        uint64_t sec = time.tv_sec;
    58         printf("%02" PRIu64 ":%02" PRIu64 ":%02" PRIu64, (sec % DAY) / HOUR,
    59             (sec % HOUR) / MINUTE, sec % MINUTE);
     58        printf("%02" PRIu64 ":%02" PRIu64 ":%02" PRIu64,
     59            (sec % DAY) / HOUR, (sec % HOUR) / MINUTE, sec % MINUTE);
    6060       
    6161        sysarg_t uptime = stats_get_uptime();
    62         printf(", up %u days, %u hours, %u minutes, %u seconds", uptime / DAY,
    63             (uptime % DAY) / HOUR, (uptime % HOUR) / MINUTE, uptime % MINUTE);
     62        printf(", up %" PRIun " days, %" PRIun " hours, "
     63            "%" PRIun " minutes, %" PRIun " seconds",
     64            uptime / DAY, (uptime % DAY) / HOUR,
     65            (uptime % HOUR) / MINUTE, uptime % MINUTE);
    6466       
    6567        size_t count;
Note: See TracChangeset for help on using the changeset viewer.