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