[openfabrics-ewg] [PATCH ofed-1.1 2/2] ehca: improved ehca debug format

Hoang-Nam Nguyen hnguyen at de.ibm.com
Mon Oct 2 15:50:05 PDT 2006


Michael,
here is the 2nd patch of ehca with a small format improvement in ehca 
debug function. It would be great if we could include it for ofed-1.1.
Note that I created this patch against the dir openib-1.1 extracted
from ofed-1.1-rc6/SOURCES/openib-1.1.tgz.
Thanks!
Nam Nguyen


Signed-off-by: Hoang-Nam Nguyen <hnguyen at de.ibm.com>
---


 ehca_tools.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff -Nurp openib-1.1_orig/drivers/infiniband/hw/ehca/ehca_tools.h openib-1.1_work/drivers/infiniband/hw/ehca/ehca_tools.h
--- openib-1.1_orig/drivers/infiniband/hw/ehca/ehca_tools.h 2006-09-20 06:28:56.000000000 -0700
+++ openib-1.1_work/drivers/infiniband/hw/ehca/ehca_tools.h 2006-10-02 09:29:53.000000000 -0700
@@ -117,7 +117,7 @@ extern int ehca_debug_level;
   unsigned int l = (unsigned int)(len); \
   unsigned char *deb = (unsigned char*)(adr); \
   for (x = 0; x < l; x += 16) { \
-   printk("EHCA_DMP:%s" format \
+   printk("EHCA_DMP:%s " format \
           " adr=%p ofs=%04x %016lx %016lx\n", \
           __FUNCTION__, ##args, deb, x, \
           *((u64 *)&deb[0]), *((u64 *)&deb[8])); \
-------------- next part --------------
diff -Nurp openib-1.1_orig/drivers/infiniband/hw/ehca/ehca_tools.h openib-1.1_work/drivers/infiniband/hw/ehca/ehca_tools.h
--- openib-1.1_orig/drivers/infiniband/hw/ehca/ehca_tools.h	2006-09-20 06:28:56.000000000 -0700
+++ openib-1.1_work/drivers/infiniband/hw/ehca/ehca_tools.h	2006-10-02 09:29:53.000000000 -0700
@@ -117,7 +117,7 @@ extern int ehca_debug_level;
 		unsigned int l = (unsigned int)(len); \
 		unsigned char *deb = (unsigned char*)(adr);	\
 		for (x = 0; x < l; x += 16) { \
-			printk("EHCA_DMP:%s" format \
+			printk("EHCA_DMP:%s " format \
 			       " adr=%p ofs=%04x %016lx %016lx\n", \
 			       __FUNCTION__, ##args, deb, x, \
 			       *((u64 *)&deb[0]), *((u64 *)&deb[8])); \


More information about the ewg mailing list