From 4d0c1864932690ae6a743269031ef774ba655177 Mon Sep 17 00:00:00 2001 From: Rutger Hofman Date: Mon, 18 May 2009 11:35:33 +0000 Subject: [PATCH] Wha, some gcc versions are much more pickier than others in their int promotion rules git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1604 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/src/bus/ejtag.c | 2 +- urjtag/src/bus/ejtag_dma.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/urjtag/src/bus/ejtag.c b/urjtag/src/bus/ejtag.c index 77bba4ba..4fb9eebb 100644 --- a/urjtag/src/bus/ejtag.c +++ b/urjtag/src/bus/ejtag.c @@ -344,7 +344,7 @@ ejtag_bus_init (urj_bus_t *bus) printf ("EJTAG version: 3.1\n"); break; default: - printf ("EJTAG version: unknown (%d)\n", EJTAG_VER); + printf ("EJTAG version: unknown (%lu)\n", (long unsigned) EJTAG_VER); } printf ("EJTAG Implementation flags:%s%s%s%s%s%s%s\n", (BP->impcode & (1 << 28)) ? " R3k" : " R4k", diff --git a/urjtag/src/bus/ejtag_dma.c b/urjtag/src/bus/ejtag_dma.c index b7711426..e9538a1c 100644 --- a/urjtag/src/bus/ejtag_dma.c +++ b/urjtag/src/bus/ejtag_dma.c @@ -425,7 +425,7 @@ ejtag_dma_bus_init (urj_bus_t *bus) printf ("EJTAG version: 2.6\n"); break; default: - printf ("EJTAG version: unknown (%d)\n", EJTAG_VER); + printf ("EJTAG version: unknown (%lu)\n", (long unsigned) EJTAG_VER); } printf ("EJTAG Implementation flags:%s%s%s%s%s%s%s\n", (BP->impcode & (1 << 28)) ? " R3k" : " R4k",