Changeset 7e752b2 in mainline for uspace/app/ping/ping.c


Ignore:
Timestamp:
2010-11-26T01:33:20Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf61d3a
Parents:
202f57b
Message:
  • correct printf() formatting strings and corresponding arguments
  • minor cstyle changes and other small fixes
File:
1 edited

Legend:

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

    r202f57b r7e752b2  
    337337        }
    338338       
    339         printf("PING %s (%s) %u(%u) bytes of data\n", config.dest_addr,
     339        printf("PING %s (%s) %zu(%zu) bytes of data\n", config.dest_addr,
    340340            config.dest_str, config.size, config.size);
    341341       
     
    378378                switch (result) {
    379379                case ICMP_ECHO:
    380                         printf("%u bytes from ? (?): icmp_seq=%u ttl=? time=%u.%04u\n",
     380                        printf("%zu bytes from ? (?): icmp_seq=%u ttl=? time=%ld.%04ld\n",
    381381                                config.size, seq, elapsed / 1000, elapsed % 1000);
    382382                        break;
    383383                case ETIMEOUT:
    384                         printf("%u bytes from ? (?): icmp_seq=%u Timed out\n",
     384                        printf("%zu bytes from ? (?): icmp_seq=%u Timed out\n",
    385385                                config.size, seq);
    386386                        break;
Note: See TracChangeset for help on using the changeset viewer.