summaryrefslogtreecommitdiff
path: root/src/video_out/libdha/test.c
diff options
context:
space:
mode:
authorJames Stembridge <jstembridge@users.sourceforge.net>2003-11-16 17:18:09 +0000
committerJames Stembridge <jstembridge@users.sourceforge.net>2003-11-16 17:18:09 +0000
commit4e6502e7006b2461f8523deb5f0213873f8cb5e8 (patch)
treeb3aeb01e90ea42c070d69baa1bd13cd1854b1623 /src/video_out/libdha/test.c
parent589a1b197b720d08ce0b6a34ab72b65dbf43c0fa (diff)
downloadxine-lib-4e6502e7006b2461f8523deb5f0213873f8cb5e8.tar.gz
xine-lib-4e6502e7006b2461f8523deb5f0213873f8cb5e8.tar.bz2
sync with vidix cvs
CVS patchset: 5755 CVS date: 2003/11/16 17:18:09
Diffstat (limited to 'src/video_out/libdha/test.c')
-rw-r--r--src/video_out/libdha/test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_out/libdha/test.c b/src/video_out/libdha/test.c
index 6026927ba..857e739c6 100644
--- a/src/video_out/libdha/test.c
+++ b/src/video_out/libdha/test.c
@@ -3,6 +3,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include <inttypes.h> /* for __WORDSIZE */
int main( void )
{
@@ -19,7 +20,11 @@ int main( void )
{
printf(" Bus:card:func vend:dev base0 :base1 :base2 :baserom :irq:pin:gnt:lat\n");
for(i=0;i<num_pci;i++)
+#if __WORDSIZE > 32
+ printf("%04X:%04X:%04X %04X:%04X %16X:%16X:%16X:%16X:%02X :%02X :%02X :%02X\n"
+#else
printf("%04X:%04X:%04X %04X:%04X %08X:%08X:%08X:%08X:%02X :%02X :%02X :%02X\n"
+#endif
,lst[i].bus,lst[i].card,lst[i].func
,lst[i].vendor,lst[i].device
,lst[i].base0,lst[i].base1,lst[i].base2,lst[i].baserom