cast uint64_t to (long long unsigned) for %llu

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@869 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Kolja Waschk 17 years ago
parent 8a53bead30
commit 814f38046d

@ -2,6 +2,7 @@
* tap/cable/*, tap/parport/xpcu_common.c, cmd/part.c, cmd/cable.c,
bus/pxa2x0.c, jtag.c: fix prototypes, include stdlib (thx Hartley)
* src/cmd/print.c: cast uint64_t to (long long unsigned) for %llu
2007-12-18 Kolja Waschk <kawk

@ -121,14 +121,14 @@ cmd_print_run( char *params[] )
for (a = 0; a < UINT64_C(0x100000000); a = area.start + area.length) {
if (bus_area( bus, a, &area ) != 0) {
printf( _("Error in bus area discovery at 0x%08llX\n"), a );
printf( _("Error in bus area discovery at 0x%08llX\n"), (long long unsigned int)a );
break;
}
if (area.width != 0) {
if (area.description != NULL)
printf( _("\tstart: 0x%08X, length: 0x%08llX, data width: %d bit, (%s)\n"), area.start, area.length, area.width, _(area.description) );
printf( _("\tstart: 0x%08X, length: 0x%08llX, data width: %d bit, (%s)\n"), area.start, (long long unsigned int)area.length, area.width, _(area.description) );
else
printf( _("\tstart: 0x%08X, length: 0x%08llX, data width: %d bit\n"), area.start, area.length, area.width );
printf( _("\tstart: 0x%08X, length: 0x%08llX, data width: %d bit\n"), area.start, (long long unsigned int)area.length, area.width );
}
}
}

Loading…
Cancel
Save