Skip to content

Commit

Permalink
adjusted style of log banners
Browse files Browse the repository at this point in the history
  • Loading branch information
MightyPork committed Oct 2, 2017
1 parent 3484209 commit e4ecf07
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions include/logging.h
Expand Up @@ -18,9 +18,7 @@
*/
#define banner(fmt, ...) \
do { \
printf(LOG_EOL "\x1b[32;1m"); \
uptime_print(); \
printf(" [i] " fmt "\x1b[0m" LOG_EOL LOG_EOL, ##__VA_ARGS__); \
printf(LOG_EOL "\x1b[32;1m[i] " fmt "\x1b[0m" LOG_EOL, ##__VA_ARGS__); \
} while(0)

/**
Expand All @@ -29,9 +27,15 @@
*/
#define banner_info(fmt, ...) \
do { \
printf("\x1b[32m"); \
uptime_print(); \
printf(" [i] " fmt "\x1b[0m"LOG_EOL, ##__VA_ARGS__); \
printf("\x1b[32m[i] " fmt "\x1b[0m"LOG_EOL, ##__VA_ARGS__); \
} while(0)

/**
* Empty line in the headers
*/
#define banner_gap() \
do { \
printf(LOG_EOL); \
} while(0)

#if VERBOSE_LOGGING
Expand Down

0 comments on commit e4ecf07

Please sign in to comment.