From a6fc232b753c68a341db4b907e6dd792a7d61041 Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Wed, 5 Jan 2005 18:01:44 +0000 Subject: [PATCH] r1479: Add more debug prints. --- mtcr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mtcr.h b/mtcr.h index f23c8f0..2e1e887 100644 --- a/mtcr.h +++ b/mtcr.h @@ -189,7 +189,9 @@ mfind(const char* name, off_t* offset_p ) if (cnt != 17 || size[1] != 0 || size[0] != 0x100000) { - fprintf(stderr,"proc: unexpected region size values.\n"); + fprintf(stderr,"proc: unexpected region size values: " + "cnt=%d, size[0]=%#x, size[1]=%#x\n", + cnt,size[0],size[1]); fprintf(stderr,"the offending line in " "/proc/bus/pci/devices" " is " "\"%.*s\"\n", sizeof(buf), buf); goto error; -- 2.41.0