aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf.c6
-rw-r--r--group.c8
-rw-r--r--kbfunc.c8
-rw-r--r--screen.c4
-rw-r--r--search.c4
5 files changed, 15 insertions, 15 deletions
diff --git a/conf.c b/conf.c
index dae14e3..adf85f3 100644
--- a/conf.c
+++ b/conf.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: conf.c,v 1.217 2016/10/18 17:03:30 okan Exp $
+ * $OpenBSD: conf.c,v 1.218 2016/10/24 17:39:38 okan Exp $
*/
#include <sys/types.h>
@@ -138,7 +138,7 @@ conf_screen(struct screen_ctx *sc)
if (sc->xftfont == NULL) {
sc->xftfont = XftFontOpenName(X_Dpy, sc->which, Conf.font);
if (sc->xftfont == NULL)
- errx(1, "XftFontOpenName: %s", Conf.font);
+ errx(1, "%s: XftFontOpenName: %s", __func__, Conf.font);
}
for (i = 0; i < nitems(color_binds); i++) {
@@ -169,7 +169,7 @@ conf_screen(struct screen_ctx *sc)
sc->menu.xftdraw = XftDrawCreate(X_Dpy, sc->menu.win, visual, colormap);
if (sc->menu.xftdraw == NULL)
- errx(1, "XftDrawCreate");
+ errx(1, "%s: XftDrawCreate", __func__);
conf_grab_kbd(sc->rootwin);
}
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)
diff --git a/kbfunc.c b/kbfunc.c
index c1309a6..9af89d9 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: kbfunc.c,v 1.132 2016/10/18 17:03:30 okan Exp $
+ * $OpenBSD: kbfunc.c,v 1.133 2016/10/24 17:39:38 okan Exp $
*/
#include <sys/types.h>
@@ -405,7 +405,7 @@ kbfunc_menu_exec(void *ctx, union arg *arg, enum xev xev)
label = "wm";
break;
default:
- errx(1, "kbfunc_menu_exec: invalid cmd %d", cmd);
+ errx(1, "%s: invalid cmd %d", __func__, cmd);
/* NOTREACHED */
}
@@ -456,7 +456,7 @@ kbfunc_menu_exec(void *ctx, union arg *arg, enum xev xev)
Conf.wm_argv = xstrdup(mi->text);
break;
default:
- errx(1, "kb_func: egad, cmd changed value!");
+ errx(1, "%s: egad, cmd changed value!", __func__);
/* NOTREACHED */
}
}
@@ -487,7 +487,7 @@ kbfunc_menu_ssh(void *ctx, union arg *arg, enum xev xev)
TAILQ_INIT(&menuq);
if ((fp = fopen(Conf.known_hosts, "r")) == NULL) {
- warn("kbfunc_menu_ssh: %s", Conf.known_hosts);
+ warn("%s: %s", __func__, Conf.known_hosts);
goto menu;
}
diff --git a/screen.c b/screen.c
index 6af8c09..5eeb827 100644
--- a/screen.c
+++ b/screen.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: screen.c,v 1.83 2016/10/18 17:03:30 okan Exp $
+ * $OpenBSD: screen.c,v 1.84 2016/10/24 17:39:38 okan Exp $
*/
#include <sys/types.h>
@@ -101,7 +101,7 @@ screen_find(Window win)
if (sc->rootwin == win)
return(sc);
}
- warnx("screen_find failure win 0x%lu\n", win);
+ warnx("%s: failure win 0x%lu\n", __func__, win);
return(NULL);
}
diff --git a/search.c b/search.c
index 9b1bfc1..f723801 100644
--- a/search.c
+++ b/search.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: search.c,v 1.55 2016/10/24 17:16:23 okan Exp $
+ * $OpenBSD: search.c,v 1.56 2016/10/24 17:39:38 okan Exp $
*/
#include <sys/types.h>
@@ -85,7 +85,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
tier--;
if (tier >= nitems(tierp))
- errx(1, "search_match_client: invalid tier");
+ errx(1, "%s: invalid tier", __func__);
/*
* If you have a tierp, insert after it, and make it