summaryrefslogtreecommitdiffstats
path: root/g10/pkclist.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-03-15 12:15:45 +0100
committerWerner Koch <wk@gnupg.org>2010-03-15 12:15:45 +0100
commitfb2ba98963beea249474f5d6d7345cf9b4b7f570 (patch)
tree3c9b25d63f90a71caec5685fca945341d54bef9d /g10/pkclist.c
parentUse a custom log handler for libassuan. (diff)
downloadgnupg2-fb2ba98963beea249474f5d6d7345cf9b4b7f570.tar.xz
gnupg2-fb2ba98963beea249474f5d6d7345cf9b4b7f570.zip
Finished the bulk of changes to use estream in most places instead of
stdio.
Diffstat (limited to 'g10/pkclist.c')
-rw-r--r--g10/pkclist.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/g10/pkclist.c b/g10/pkclist.c
index cbc76c76d..ca5624a4b 100644
--- a/g10/pkclist.c
+++ b/g10/pkclist.c
@@ -81,12 +81,11 @@ do_show_revocation_reason( PKT_signature *sig )
else
text = NULL;
- log_info( _("reason for revocation: ") );
- if( text )
- fputs( text, log_get_stream() );
+ log_info ( _("reason for revocation: "));
+ if (text)
+ log_printf ("%s\n", text);
else
- fprintf( log_get_stream(), "code=%02x", *p );
- log_printf ("\n");
+ log_printf ("code=%02x\n", *p );
n--; p++;
pp = NULL;
do {
@@ -99,7 +98,7 @@ do_show_revocation_reason( PKT_signature *sig )
pp = memchr( p, '\n', n );
nn = pp? pp - p : n;
log_info ( _("revocation comment: ") );
- print_string ( log_get_stream(), p, nn, 0 );
+ es_write_sanitized (log_get_stream(), p, nn, NULL, NULL);
log_printf ("\n");
p += nn; n -= nn;
}