diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-03 22:32:24 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-03 22:32:24 +0000 |
commit | c3e049c5a9343138be44c9ab8f77c36293871424 (patch) | |
tree | ee68e6f85b71a30024900de0281804b77a11d18f /tmux.c | |
parent | 001e2d1947358c6988e0977574faf97406eca586 (diff) | |
download | rtmux-c3e049c5a9343138be44c9ab8f77c36293871424.tar.gz rtmux-c3e049c5a9343138be44c9ab8f77c36293871424.tar.bz2 rtmux-c3e049c5a9343138be44c9ab8f77c36293871424.zip |
Tweak error msgs.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.c,v 1.26 2007-10-03 21:39:16 nicm Exp $ */ +/* $Id: tmux.c,v 1.27 2007-10-03 22:32:24 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -205,7 +205,7 @@ main(int argc, char **argv) if ((cmd = cmd_parse(argc, argv, &cause)) == NULL) { if (cause == NULL) goto usage; - log_warnx("%s: %s", __progname, cause); + log_warnx("%s", cause); exit(1); } @@ -250,14 +250,14 @@ main(int argc, char **argv) case MSG_PRINT: if (hdr.size > INT_MAX - 1) fatalx("bad MSG_PRINT size"); - log_info( - "%.*s", (int) hdr.size, BUFFER_OUT(cctx.srv_in)); + log_info("%.*s", + (int) hdr.size, BUFFER_OUT(cctx.srv_in)); buffer_remove(cctx.srv_in, hdr.size); goto restart; case MSG_ERROR: if (hdr.size > INT_MAX - 1) fatalx("bad MSG_ERROR size"); - log_warnx("%s: %.*s", __progname, + log_warnx("%.*s", (int) hdr.size, BUFFER_OUT(cctx.srv_in)); buffer_remove(cctx.srv_in, hdr.size); exit(1); |