summaryrefslogtreecommitdiffstats
path: root/src/pacman/log.h
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-04 11:34:27 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-02-04 11:34:27 +0100
commit633c89b5327bbdb14d0d076cbab474c60dabab57 (patch)
tree6d6294f69393fbecdc276665ea7ad87288c71bae /src/pacman/log.h
parentfe0b4cccb2539165657b7f06bb0a6a1123377798 (diff)
downloadpacman-633c89b5327bbdb14d0d076cbab474c60dabab57.tar.gz
pacman-633c89b5327bbdb14d0d076cbab474c60dabab57.tar.xz
- moved yesno() from util.c to log.c
- fixed a missing line feed in yesno when printing the message
Diffstat (limited to 'src/pacman/log.h')
-rw-r--r--src/pacman/log.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/pacman/log.h b/src/pacman/log.h
index 28999fd3..6cd5b346 100644
--- a/src/pacman/log.h
+++ b/src/pacman/log.h
@@ -26,11 +26,6 @@
pm_fprintf(stderr, line, "error: "); \
pm_fprintf(stderr, CL, fmt, ##args); \
} while(0)
-#define DBG(line, fmt, args...) do { \
- char str[256]; \
- snprintf(str, 256, fmt, ##args); \
- cb_log(PM_LOG_DEBUG, str); \
-} while(0)
enum {
NL, /* new line */
@@ -41,9 +36,10 @@ enum {
void cb_log(unsigned short level, char *msg);
void pm_fprintf(FILE *file, unsigned short line, char *fmt, ...);
-
void vprint(char *fmt, ...);
+int yesno(char *fmt, ...);
+
#endif /* _PM_LOG_H */
/* vim: set ts=2 sw=2 noet: */