diff options
author | okan | 2016-10-24 17:39:38 +0000 |
---|---|---|
committer | okan | 2016-10-24 17:39:38 +0000 |
commit | 0a160ce39b2682a3682e54a6aa8937d852c1adb1 (patch) | |
tree | 8487c4d1cbcf0b34fdc76f9574d45199d816d1c5 /kbfunc.c | |
parent | 2e42cacbc2852535c15f8a6b7aaa7078d073ca26 (diff) | |
download | cwm-0a160ce39b2682a3682e54a6aa8937d852c1adb1.tar.gz |
Sprinkle __func__ in appropriate error messages.
Diffstat (limited to 'kbfunc.c')
-rw-r--r-- | kbfunc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |