summaryrefslogtreecommitdiffstats
path: root/lib/vty.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-12-01 13:00:37 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-12-01 13:00:37 -0800
commita7da5662d93b163c4b264622efcc11852475d463 (patch)
tree431511ae076a3fc6d389c80131889a51220621d7 /lib/vty.h
parent24b16fb480887cab0bda613ef8c03a0d15272128 (diff)
downloadquagga-a7da5662d93b163c4b264622efcc11852475d463.tar.bz2
quagga-a7da5662d93b163c4b264622efcc11852475d463.tar.xz
Revert "Add compiler directive to mark code paths that log as cold"
This reverts commit ebc04ce20a871c99dbb116a4fbada967dd750c43. Don't really need this and it would be too hard to convince upstream to take it.
Diffstat (limited to 'lib/vty.h')
-rw-r--r--lib/vty.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/vty.h b/lib/vty.h
index 31cbd498..65ae6201 100644
--- a/lib/vty.h
+++ b/lib/vty.h
@@ -141,6 +141,13 @@ struct vty
#define IS_DIRECTORY_SEP(c) ((c) == DIRECTORY_SEP)
#endif
+/* GCC have printf type attribute check. */
+#ifdef __GNUC__
+#define PRINTF_ATTRIBUTE(a,b) __attribute__ ((__format__ (__printf__, a, b)))
+#else
+#define PRINTF_ATTRIBUTE(a,b)
+#endif /* __GNUC__ */
+
/* Utility macros to convert VTY argument to unsigned long or integer. */
#define VTY_GET_LONG(NAME,V,STR) \
do { \