diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-29 16:45:45 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-29 16:45:45 +0100 |
commit | 327f550669a80d72f36bc9e4de619c163aa46eff (patch) | |
tree | d304092aeb06539085be1385ab9298876c414b44 /util-linux/ipcs.c | |
parent | 9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1 (diff) | |
download | busybox-w32-327f550669a80d72f36bc9e4de619c163aa46eff.tar.gz busybox-w32-327f550669a80d72f36bc9e4de619c163aa46eff.tar.bz2 busybox-w32-327f550669a80d72f36bc9e4de619c163aa46eff.zip |
Use unsigned printf/scanf conversion where more appropriate
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/ipcs.c')
-rw-r--r-- | util-linux/ipcs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c index 2668cafd4..67a25a8ef 100644 --- a/util-linux/ipcs.c +++ b/util-linux/ipcs.c | |||
@@ -166,10 +166,10 @@ static NOINLINE void do_shm(void) | |||
166 | case STATUS: | 166 | case STATUS: |
167 | printf("------ Shared Memory %s --------\n", "Status"); | 167 | printf("------ Shared Memory %s --------\n", "Status"); |
168 | printf("segments allocated %d\n" | 168 | printf("segments allocated %d\n" |
169 | "pages allocated %ld\n" | 169 | "pages allocated %lu\n" |
170 | "pages resident %ld\n" | 170 | "pages resident %lu\n" |
171 | "pages swapped %ld\n" | 171 | "pages swapped %lu\n" |
172 | "Swap performance: %ld attempts\t%ld successes\n", | 172 | "Swap performance: %lu attempts\t%lu successes\n", |
173 | shm_info.used_ids, | 173 | shm_info.used_ids, |
174 | shm_info.shm_tot, | 174 | shm_info.shm_tot, |
175 | shm_info.shm_rss, | 175 | shm_info.shm_rss, |
@@ -569,7 +569,7 @@ static void print_sem(int semid) | |||
569 | if (val < 0 || ncnt < 0 || zcnt < 0 || pid < 0) { | 569 | if (val < 0 || ncnt < 0 || zcnt < 0 || pid < 0) { |
570 | bb_perror_msg_and_die("semctl"); | 570 | bb_perror_msg_and_die("semctl"); |
571 | } | 571 | } |
572 | printf("%-10d %-10d %-10d %-10d %-10d\n", i, val, ncnt, zcnt, pid); | 572 | printf("%-10u %-10d %-10d %-10d %-10d\n", i, val, ncnt, zcnt, pid); |
573 | } | 573 | } |
574 | bb_putchar('\n'); | 574 | bb_putchar('\n'); |
575 | } | 575 | } |