diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-03-22 11:32:19 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-03-22 11:32:19 +0000 |
commit | ac3b2e8571fc98ff6bdd16b9ab77fae32c648838 (patch) | |
tree | bec0c8a36e7b5e816bb37a3a649fd8e5a7e5d927 /lib/libedit/common.c | |
parent | c2f1a9820918a255ea08f9255537d495c2a9311d (diff) |
format string fixes in debug code;
committing right away because this code is not even compiled by default
Diffstat (limited to 'lib/libedit/common.c')
-rw-r--r-- | lib/libedit/common.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libedit/common.c b/lib/libedit/common.c index ff9faf7562e..f6988df9878 100644 --- a/lib/libedit/common.c +++ b/lib/libedit/common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: common.c,v 1.15 2016/03/21 15:25:39 schwarze Exp $ */ +/* $OpenBSD: common.c,v 1.16 2016/03/22 11:32:18 schwarze Exp $ */ /* $NetBSD: common.c,v 1.24 2009/12/30 22:37:40 christos Exp $ */ /*- @@ -141,8 +141,9 @@ ed_delete_next_char(EditLine *el, wint_t c) { #ifdef notdef /* XXX */ #define EL el->el_line - (void) fprintf(el->el_errlfile, - "\nD(b: %x(%s) c: %x(%s) last: %x(%s) limit: %x(%s)\n", + (void) fprintf(el->el_errfile, + "\nD(b: %p(" FSTR ") c: %p(" FSTR ") last: %p(" FSTR + ") limit: %p(" FSTR ")\n", EL.buffer, EL.buffer, EL.cursor, EL.cursor, EL.lastchar, EL.lastchar, EL.limit, EL.limit); #endif |