summary refs log tree commit diff
path: root/group.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 /group.c
parentffd60b3cabc361f9432c863ff58e823db5b7aa14 (diff)
downloadcwm-eb43101591ca45754f4805dd1f7101c79a487ddb.tar.gz
cwm-eb43101591ca45754f4805dd1f7101c79a487ddb.tar.xz
cwm-eb43101591ca45754f4805dd1f7101c79a487ddb.zip
Sprinkle __func__ in appropriate error messages.
Diffstat (limited to 'group.c')
-rw-r--r--group.c6
1 files changed, 3 insertions, 3 deletions
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)