Sprinkle __func__ in appropriate error messages.
This commit is contained in:
6
group.c
6
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)
|
||||
|
||||
Reference in New Issue
Block a user