diff options
author | okan <okan> | 2016-10-24 17:39:38 +0000 |
---|---|---|
committer | okan <okan> | 2016-10-24 17:39:38 +0000 |
commit | eb43101591ca45754f4805dd1f7101c79a487ddb (patch) | |
tree | 9ad7ed4b8fd6740bd513978cdc3b801c080040c9 /group.c | |
parent | ffd60b3cabc361f9432c863ff58e823db5b7aa14 (diff) | |
download | cwm-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.c | 6 |
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) |