summary refs log tree commit diff
path: root/conf.c
diff options
context:
space:
mode:
authorokan <okan>2016-10-24 17:39:38 +0000
committerokan <okan>2016-10-24 17:39:38 +0000
commiteb43101591ca45754f4805dd1f7101c79a487ddb (patch)
tree9ad7ed4b8fd6740bd513978cdc3b801c080040c9 /conf.c
parentffd60b3cabc361f9432c863ff58e823db5b7aa14 (diff)
downloadcwm-eb43101591ca45754f4805dd1f7101c79a487ddb.tar.gz
cwm-eb43101591ca45754f4805dd1f7101c79a487ddb.tar.xz
cwm-eb43101591ca45754f4805dd1f7101c79a487ddb.zip
Sprinkle __func__ in appropriate error messages.
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf.c b/conf.c
index 156bb71..f0f1dde 100644
--- a/conf.c
+++ b/conf.c
@@ -138,7 +138,7 @@ conf_screen(struct screen_ctx *sc)
 	if (sc->xftfont == NULL) {
 		sc->xftfont = XftFontOpenName(X_Dpy, sc->which, Conf.font);
 		if (sc->xftfont == NULL)
-			errx(1, "XftFontOpenName: %s", Conf.font);
+			errx(1, "%s: XftFontOpenName: %s", __func__, Conf.font);
 	}
 
 	for (i = 0; i < nitems(color_binds); i++) {
@@ -169,7 +169,7 @@ conf_screen(struct screen_ctx *sc)
 
 	sc->menu.xftdraw = XftDrawCreate(X_Dpy, sc->menu.win, visual, colormap);
 	if (sc->menu.xftdraw == NULL)
-		errx(1, "XftDrawCreate");
+		errx(1, "%s: XftDrawCreate", __func__);
 
 	conf_grab_kbd(sc->rootwin);
 }