aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorokan2016-10-24 17:39:38 +0000
committerokan2016-10-24 17:39:38 +0000
commit0a160ce39b2682a3682e54a6aa8937d852c1adb1 (patch)
tree8487c4d1cbcf0b34fdc76f9574d45199d816d1c5 /conf.c
parent2e42cacbc2852535c15f8a6b7aaa7078d073ca26 (diff)
downloadcwm-0a160ce39b2682a3682e54a6aa8937d852c1adb1.tar.gz
Sprinkle __func__ in appropriate error messages.
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/conf.c b/conf.c
index dae14e3..adf85f3 100644
--- a/conf.c
+++ b/conf.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: conf.c,v 1.217 2016/10/18 17:03:30 okan Exp $
+ * $OpenBSD: conf.c,v 1.218 2016/10/24 17:39:38 okan Exp $
*/
#include <sys/types.h>
@@ -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);
}