Update of /cvsroot/blob/blob/include/blob
In directory usw-pr-cvs1:/tmp/cvs-serv9996
Modified Files:
Makefile.am error.h
Added Files:
debug.h
Log Message:
Add debug printf() functions.
Index: Makefile.am
===================================================================
RCS file: /cvsroot/blob/blob/include/blob/Makefile.am,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- Makefile.am 20 Jan 2002 23:16:18 -0000 1.14
+++ Makefile.am 12 Feb 2002 23:55:24 -0000 1.15
@@ -19,6 +19,7 @@
command.h \
command_hist.h \
crc32.h \
+ debug.h \
errno.h \
error.h \
flash.h \
Index: error.h
===================================================================
RCS file: /cvsroot/blob/blob/include/blob/error.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- error.h 7 Oct 2001 15:17:49 -0000 1.1
+++ error.h 12 Feb 2002 23:55:24 -0000 1.2
@@ -26,10 +26,15 @@
#ifndef BLOB_ERROR_H
#define BLOB_ERROR_H
+#include <blob/util.h> /* for printf() */
char *strerror(int errnum);
void printerrprefix(void);
void printerror(int errnum, char *s);
+
+#define eprintf(fmt, args...) \
+ printerrprefix(); \
+ printf(fmt , ## args)
#endif
|