From faa52bdcc0221de2d8fae950e409a8ac5e05bfcd Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Wed, 28 Mar 2018 19:46:27 +0200 Subject: Format error messages properly Make use of strerror(errno) and format all errors equally: function ['parameters']: error message --- components/keyboard_indicators.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/keyboard_indicators.c') diff --git a/components/keyboard_indicators.c b/components/keyboard_indicators.c index 47b52c6..76cf17e 100644 --- a/components/keyboard_indicators.c +++ b/components/keyboard_indicators.c @@ -11,7 +11,7 @@ keyboard_indicators(void) XKeyboardState state; if (dpy == NULL) { - fprintf(stderr, "Cannot open display"); + fprintf(stderr, "Cannot open display\n"); return NULL; } XGetKeyboardControl(dpy, &state); -- cgit v1.2.3