From eb43101591ca45754f4805dd1f7101c79a487ddb Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 24 Oct 2016 17:39:38 +0000 Subject: Sprinkle __func__ in appropriate error messages. --- group.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'group.c') diff --git a/group.c b/group.c index ec368de..a26c53d 100644 --- a/group.c +++ b/group.c @@ -155,7 +155,7 @@ group_movetogroup(struct client_ctx *cc, int idx) struct group_ctx *gc; if (idx < 0 || idx >= Conf.ngroups) - errx(1, "group_movetogroup: index out of range (%d)", idx); + errx(1, "%s: index out of range (%d)", __func__, idx); TAILQ_FOREACH(gc, &sc->groupq, entry) { if (gc->num == idx) @@ -223,7 +223,7 @@ group_hidetoggle(struct screen_ctx *sc, int idx) struct group_ctx *gc; if (idx < 0 || idx >= Conf.ngroups) - errx(1, "group_hidetoggle: index out of range (%d)", idx); + errx(1, "%s: index out of range (%d)", __func__, idx); TAILQ_FOREACH(gc, &sc->groupq, entry) { if (gc->num == idx) @@ -246,7 +246,7 @@ group_only(struct screen_ctx *sc, int idx) struct group_ctx *gc; if (idx < 0 || idx >= Conf.ngroups) - errx(1, "group_only: index out of range (%d)", idx); + errx(1, "%s: index out of range (%d)", __func__, idx); TAILQ_FOREACH(gc, &sc->groupq, entry) { if (gc->num == idx) -- cgit 1.4.1