diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2010-06-05 16:36:35 +0200 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2010-09-07 11:26:54 +0200 |
commit | b40bb768916a4c8da5ab49ea2df68c693a53ccc3 (patch) | |
tree | 04ddbbceac181b55295a4e38a161aafb82248fa2 | |
parent | 808cc7ee2cbca2ce560770d6bc35ee70b3a4ae22 (diff) | |
download | libraw1394-b40bb768916a4c8da5ab49ea2df68c693a53ccc3.tar.gz |
tools/testlibraw: Fix a harmless format string bug
The compiler warned that size_t and %d don't go well together.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
-rw-r--r-- | tools/testlibraw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testlibraw.c b/tools/testlibraw.c index ea79bc7..6547c00 100644 --- a/tools/testlibraw.c +++ b/tools/testlibraw.c @@ -55,7 +55,7 @@ int my_fcp_handler(raw1394handle_t handle, nodeid_t nodeid, int response, size_t length, unsigned char *data) { printf(" got fcp %s from node %d of %d bytes:", - (response ? "response" : "command"), nodeid & 0x3f, length); + (response ? "response" : "command"), nodeid & 0x3f, (int)length); if (memcmp(fcp_data, data, sizeof fcp_data) != 0) printf("ERROR: fcp payload not correct\n"); @@ -129,7 +129,7 @@ test_config_rom(raw1394handle_t handle) retval = raw1394_get_config_rom(handle, rom, 0x100, &rom_size, &rom_version); printf(" get_config_rom returned %d, romsize %d, rom_version %d\n", - retval, rom_size, rom_version); + retval, (int)rom_size, rom_version); printf(" here are the first 10 quadlets:\n"); for (i = 0; i < 10; i++) printf(" 0x%08x\n", rom[i]); |