]> xenbits.xensource.com Git - people/dstodden/blktap.git/commitdiff
CA-26523: Add global PERROR macro.
authorDaniel Stodden <daniel.stodden@citrix.com>
Mon, 6 Apr 2009 20:22:21 +0000 (13:22 -0700)
committerDaniel Stodden <daniel.stodden@citrix.com>
Mon, 6 Apr 2009 20:22:21 +0000 (13:22 -0700)
include/blktaplib.h

index 1824afa943b20a5271a4f8e71863d51b1958220d..b9282409115e0a58046ee1dfe5ef2b1246b9f3bd 100644 (file)
@@ -43,6 +43,7 @@
 #endif
 
 #define EPRINTF(_f, _a...) syslog(LOG_ERR, "tap-err:%s: " _f, __func__, ##_a)
+#define PERROR(_f, _a...)  EPRINTF(_f ": %s", ##_a, strerror(errno))
 
 #define BLK_RING_SIZE __RING_SIZE((blkif_sring_t *)0, XC_PAGE_SIZE)