diff options
Diffstat (limited to 'Documentation/accounting')
-rw-r--r-- | Documentation/accounting/getdelays.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/accounting/getdelays.c b/Documentation/accounting/getdelays.c index d6cb1a86fd61..40121b5cca14 100644 --- a/Documentation/accounting/getdelays.c +++ b/Documentation/accounting/getdelays.c | |||
@@ -168,7 +168,7 @@ int get_family_id(int sd) | |||
168 | char buf[256]; | 168 | char buf[256]; |
169 | } ans; | 169 | } ans; |
170 | 170 | ||
171 | int id, rc; | 171 | int id = 0, rc; |
172 | struct nlattr *na; | 172 | struct nlattr *na; |
173 | int rep_len; | 173 | int rep_len; |
174 | 174 | ||
@@ -209,7 +209,7 @@ void print_delayacct(struct taskstats *t) | |||
209 | void task_context_switch_counts(struct taskstats *t) | 209 | void task_context_switch_counts(struct taskstats *t) |
210 | { | 210 | { |
211 | printf("\n\nTask %15s%15s\n" | 211 | printf("\n\nTask %15s%15s\n" |
212 | " %15lu%15lu\n", | 212 | " %15llu%15llu\n", |
213 | "voluntary", "nonvoluntary", | 213 | "voluntary", "nonvoluntary", |
214 | t->nvcsw, t->nivcsw); | 214 | t->nvcsw, t->nivcsw); |
215 | } | 215 | } |
@@ -399,7 +399,7 @@ int main(int argc, char *argv[]) | |||
399 | goto done; | 399 | goto done; |
400 | } | 400 | } |
401 | 401 | ||
402 | PRINTF("nlmsghdr size=%d, nlmsg_len=%d, rep_len=%d\n", | 402 | PRINTF("nlmsghdr size=%zu, nlmsg_len=%d, rep_len=%d\n", |
403 | sizeof(struct nlmsghdr), msg.n.nlmsg_len, rep_len); | 403 | sizeof(struct nlmsghdr), msg.n.nlmsg_len, rep_len); |
404 | 404 | ||
405 | 405 | ||