Mercurial > otakunoraifu
comparison system/system_config.cc @ 48:ed6c21dde840
* use correct format (%p) for pointers
author | thib |
---|---|
date | Wed, 15 Apr 2009 20:28:19 +0000 |
parents | 5f548e5957a8 |
children | 35ce1a30f3f9 |
comparison
equal
deleted
inserted
replaced
47:5f548e5957a8 | 48:ed6c21dde840 |
---|---|
365 fprintf(f, ",%d",original_data[i]); | 365 fprintf(f, ",%d",original_data[i]); |
366 } | 366 } |
367 fprintf(f, ") "); | 367 fprintf(f, ") "); |
368 } | 368 } |
369 if (old_data) { | 369 if (old_data) { |
370 fprintf(f, "old %08x(%d", (unsigned int)(old_data), old_data[0]); | 370 fprintf(f, "old %p(%d", old_data, old_data[0]); |
371 int i;for (i=1; i<item_deal; i++) { | 371 int i;for (i=1; i<item_deal; i++) { |
372 fprintf(f, ",%d",old_data[i]); | 372 fprintf(f, ",%d",old_data[i]); |
373 } | 373 } |
374 fprintf(f, ") "); | 374 fprintf(f, ") "); |
375 } | 375 } |
376 if (new_data) { | 376 if (new_data) { |
377 fprintf(f, "new %08x(%d", (unsigned int)(new_data), new_data[0]); | 377 fprintf(f, "new %p(%d", new_data, new_data[0]); |
378 int i;for (i=1; i<item_deal; i++) { | 378 int i;for (i=1; i<item_deal; i++) { |
379 fprintf(f, ",%d",new_data[i]); | 379 fprintf(f, ",%d",new_data[i]); |
380 } | 380 } |
381 fprintf(f, ") "); | 381 fprintf(f, ") "); |
382 } | 382 } |