aboutsummaryrefslogtreecommitdiff
path: root/lib/libedit/common.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2017-01-30 23:00:51 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2017-01-30 23:00:51 +0000
commit678bbc14b25b657d63c91fa9a4bd3068bf100bfa (patch)
tree007f3b832dd6368ef31062783b65fd3f2df7ac05 /lib/libedit/common.c
parent164aa3ce5e4bada1f189d1c5b56279731aa367ef (diff)
parent70f1d4d70d0c78aa69c52d977130f4046851c4a3 (diff)
Notes
Diffstat (limited to 'lib/libedit/common.c')
-rw-r--r--lib/libedit/common.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libedit/common.c b/lib/libedit/common.c
index 26e4289b2725..a2a971233c05 100644
--- a/lib/libedit/common.c
+++ b/lib/libedit/common.c
@@ -1,4 +1,4 @@
-/* $NetBSD: common.c,v 1.39 2016/02/24 14:25:38 christos Exp $ */
+/* $NetBSD: common.c,v 1.40 2016/03/02 19:24:20 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)common.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: common.c,v 1.39 2016/02/24 14:25:38 christos Exp $");
+__RCSID("$NetBSD: common.c,v 1.40 2016/03/02 19:24:20 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
#include <sys/cdefs.h>
@@ -149,8 +149,9 @@ ed_delete_next_char(EditLine *el, wint_t c __attribute__((__unused__)))
{
#ifdef DEBUG_EDIT
#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