chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemctl: move status further down
[elogind.git]
/
src
/
log.c
diff --git
a/src/log.c
b/src/log.c
index a47285cb2129130e463ed822767ac1fa501d3088..e67a5b3b43e64f31ea25edfd60fd4e526a8390d7 100644
(file)
--- a/
src/log.c
+++ b/
src/log.c
@@
-227,10
+227,10
@@
static int write_to_console(
if (show_location)
IOVEC_SET_STRING(iovec[n++], location);
if (highlight)
if (show_location)
IOVEC_SET_STRING(iovec[n++], location);
if (highlight)
- IOVEC_SET_STRING(iovec[n++],
"\x1B[1;31m"
);
+ IOVEC_SET_STRING(iovec[n++],
ANSI_HIGHLIGHT_ON
);
IOVEC_SET_STRING(iovec[n++], buffer);
if (highlight)
IOVEC_SET_STRING(iovec[n++], buffer);
if (highlight)
- IOVEC_SET_STRING(iovec[n++],
"\x1B[0m"
);
+ IOVEC_SET_STRING(iovec[n++],
ANSI_HIGHLIGHT_OFF
);
IOVEC_SET_STRING(iovec[n++], "\n");
if (writev(console_fd, iovec, n) < 0)
IOVEC_SET_STRING(iovec[n++], "\n");
if (writev(console_fd, iovec, n) < 0)