summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Stefan Richter 2010-06-05 16:36:35 +0200
committerGravatar Stefan Richter 2010-09-07 11:26:54 +0200
commitb40bb768916a4c8da5ab49ea2df68c693a53ccc3 (patch)
tree04ddbbceac181b55295a4e38a161aafb82248fa2
parentAlways imply iso shutdown in fw_destroy_handle (diff)
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>
Diffstat (limited to '')
-rw-r--r--tools/testlibraw.c4
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]);
td>2021-07-26new exampleGravatar John Cowan 1-1/+4 2021-07-26updatesGravatar John Cowan 1-2/+4 2021-07-26dtd always first argumentGravatar John Cowan 1-9/+9 2021-07-26DTO to DTDGravatar John Cowan 1-55/+52 2021-07-26typoGravatar John Cowan 1-1/+1 2021-07-26switching to explicit dtosGravatar John Cowan 1-88/+102 2021-07-26errorsGravatar John Cowan 1-1/+4 2021-07-26more MN-W reviewGravatar John Cowan 1-5/+5 2021-07-26update preview linkGravatar John Cowan 1-1/+1 2021-07-26MN-W reviewGravatar John Cowan 1-6/+6 2021-07-26paired mutatorsGravatar John Cowan 1-43/+68 2021-07-25exceptionsGravatar John Cowan 1-1/+15 2021-07-25new exampleGravatar John Cowan 1-1/+4 2021-07-25updatesGravatar John Cowan 1-2/+4 2021-07-24dtd always first argumentGravatar John Cowan 1-9/+9 2021-07-23DTO to DTDGravatar John Cowan 1-55/+52 2021-07-22typoGravatar John Cowan 1-1/+1 2021-07-22switching to explicit dtosGravatar John Cowan 1-88/+102 2021-07-22errorsGravatar John Cowan 1-1/+4 2021-07-22more MN-W reviewGravatar John Cowan 1-5/+5 2021-07-20update preview linkGravatar John Cowan 1-1/+1 2021-07-20MN-W reviewGravatar John Cowan 1-6/+6 2021-07-18Fix typo.Gravatar Arthur A. Gleckler 2-4/+4 2021-07-18Add <p> around abstract.Gravatar Arthur A. Gleckler 1-2/+2 2021-07-18Publish first draft.draft-1Gravatar Arthur A. Gleckler 3-0/+114 2021-07-18Ignore trailing whitespace.Gravatar Arthur A. Gleckler 11-129/+129 2021-07-18Ignore "Dictionaries.log".Gravatar Arthur A. Gleckler 1-1/+2 2021-07-18Fix errors reported by W3C HTML Validator.Gravatar Arthur A. Gleckler 1-27/+27 2021-07-18Eliminate unnecessary redirect by using TLS/SSL.Gravatar Arthur A. Gleckler 1-1/+1