Print unsigned long values with %lu, not %ld.

Change-Id: Ic437f5ec918c1cd4d39eb27e0a4fafb2a2f4b244
Reviewed-on: https://code.wireshark.org/review/8782
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2015-06-05 18:39:41 -07:00
parent 1736a1bcc6
commit a365fb8316
1 changed files with 4 additions and 4 deletions

View File

@ -422,10 +422,10 @@ int main(int argc, char **argv)
/* inner catch */
msg = except_message(ex);
if (msg == NULL) {
printf("caught exception (inner): s=%ld, c=%ld\n",
printf("caught exception (inner): s=%lu, c=%lu\n",
except_group(ex), except_code(ex));
} else {
printf("caught exception (inner): \"%s\", s=%ld, c=%ld\n",
printf("caught exception (inner): \"%s\", s=%lu, c=%lu\n",
msg, except_group(ex), except_code(ex));
}
except_rethrow(ex);
@ -435,10 +435,10 @@ int main(int argc, char **argv)
/* outer catch */
msg = except_message(ex);
if (msg == NULL) {
printf("caught exception (outer): s=%ld, c=%ld\n",
printf("caught exception (outer): s=%lu, c=%lu\n",
except_group(ex), except_code(ex));
} else {
printf("caught exception (outer): \"%s\", s=%ld, c=%ld\n",
printf("caught exception (outer): \"%s\", s=%lu, c=%lu\n",
except_message(ex), except_group(ex), except_code(ex));
}
}