diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-12-01 13:00:37 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-12-01 13:00:37 -0800 |
commit | a7da5662d93b163c4b264622efcc11852475d463 (patch) | |
tree | 431511ae076a3fc6d389c80131889a51220621d7 /lib/vty.h | |
parent | 24b16fb480887cab0bda613ef8c03a0d15272128 (diff) | |
download | quagga-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.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 { \ |