diff options
| -rw-r--r-- | tools/idevicesyslog.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c index 3084b97..5600be2 100644 --- a/tools/idevicesyslog.c +++ b/tools/idevicesyslog.c | |||
| @@ -149,7 +149,7 @@ static void syslog_callback(char c, void *user_data) | |||
| 149 | do { | 149 | do { |
| 150 | if (lp < 16) { | 150 | if (lp < 16) { |
| 151 | shall_print = 1; | 151 | shall_print = 1; |
| 152 | cprintf(COLOR_WHITE); | 152 | cprintf(FG_WHITE); |
| 153 | break; | 153 | break; |
| 154 | } | 154 | } |
| 155 | 155 | ||
| @@ -282,35 +282,35 @@ static void syslog_callback(char c, void *user_data) | |||
| 282 | const char* level_color = NULL; | 282 | const char* level_color = NULL; |
| 283 | if (!strncmp(p, "<Notice>:", 9)) { | 283 | if (!strncmp(p, "<Notice>:", 9)) { |
| 284 | level_end += 9; | 284 | level_end += 9; |
| 285 | level_color = COLOR_GREEN; | 285 | level_color = FG_GREEN; |
| 286 | } else if (!strncmp(p, "<Error>:", 8)) { | 286 | } else if (!strncmp(p, "<Error>:", 8)) { |
| 287 | level_end += 8; | 287 | level_end += 8; |
| 288 | level_color = COLOR_RED; | 288 | level_color = FG_RED; |
| 289 | } else if (!strncmp(p, "<Warning>:", 10)) { | 289 | } else if (!strncmp(p, "<Warning>:", 10)) { |
| 290 | level_end += 10; | 290 | level_end += 10; |
| 291 | level_color = COLOR_YELLOW; | 291 | level_color = FG_YELLOW; |
| 292 | } else if (!strncmp(p, "<Debug>:", 8)) { | 292 | } else if (!strncmp(p, "<Debug>:", 8)) { |
| 293 | level_end += 8; | 293 | level_end += 8; |
| 294 | level_color = COLOR_MAGENTA; | 294 | level_color = FG_MAGENTA; |
| 295 | } else { | 295 | } else { |
| 296 | level_color = COLOR_WHITE; | 296 | level_color = FG_WHITE; |
| 297 | } | 297 | } |
| 298 | 298 | ||
| 299 | /* write date and time */ | 299 | /* write date and time */ |
| 300 | cprintf(COLOR_LIGHT_GRAY); | 300 | cprintf(FG_LIGHT_GRAY); |
| 301 | fwrite(line, 1, 16, stdout); | 301 | fwrite(line, 1, 16, stdout); |
| 302 | 302 | ||
| 303 | if (show_device_name) { | 303 | if (show_device_name) { |
| 304 | /* write device name */ | 304 | /* write device name */ |
| 305 | cprintf(COLOR_DARK_YELLOW); | 305 | cprintf(FG_DARK_YELLOW); |
| 306 | fwrite(device_name_start, 1, device_name_end-device_name_start+1, stdout); | 306 | fwrite(device_name_start, 1, device_name_end-device_name_start+1, stdout); |
| 307 | cprintf(COLOR_RESET); | 307 | cprintf(COLOR_RESET); |
| 308 | } | 308 | } |
| 309 | 309 | ||
| 310 | /* write process name */ | 310 | /* write process name */ |
| 311 | cprintf(COLOR_BRIGHT_CYAN); | 311 | cprintf(FG_BRIGHT_CYAN); |
| 312 | fwrite(process_name_start, 1, process_name_end-process_name_start, stdout); | 312 | fwrite(process_name_start, 1, process_name_end-process_name_start, stdout); |
| 313 | cprintf(COLOR_CYAN); | 313 | cprintf(FG_CYAN); |
| 314 | fwrite(process_name_end, 1, proc_name_end-process_name_end+1, stdout); | 314 | fwrite(process_name_end, 1, proc_name_end-process_name_end+1, stdout); |
| 315 | 315 | ||
| 316 | /* write log level */ | 316 | /* write log level */ |
| @@ -323,11 +323,11 @@ static void syslog_callback(char c, void *user_data) | |||
| 323 | lp -= p - linep; | 323 | lp -= p - linep; |
| 324 | linep = p; | 324 | linep = p; |
| 325 | 325 | ||
| 326 | cprintf(COLOR_WHITE); | 326 | cprintf(FG_WHITE); |
| 327 | 327 | ||
| 328 | } else { | 328 | } else { |
| 329 | shall_print = 1; | 329 | shall_print = 1; |
| 330 | cprintf(COLOR_WHITE); | 330 | cprintf(FG_WHITE); |
| 331 | } | 331 | } |
| 332 | } while (0); | 332 | } while (0); |
| 333 | 333 | ||
