git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1b32a0
)
Don't print out key material in trace output.
author
Richard W.M. Jones
<rjones@redhat.com>
Fri, 5 Nov 2010 11:54:54 +0000
(11:54 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Fri, 5 Nov 2010 14:45:30 +0000
(14:45 +0000)
(cherry picked from commit
6283982e36eeb3d19940618dc0aec88da08c7516
)
generator/generator_c.ml
patch
|
blob
|
history
diff --git
a/generator/generator_c.ml
b/generator/generator_c.ml
index
7f1b377
..
1d580e0
100644
(file)
--- a/
generator/generator_c.ml
+++ b/
generator/generator_c.ml
@@
-606,10
+606,12
@@
check_state (guestfs_h *g, const char *caller)
| Pathname n
| Dev_or_Path n
| FileIn n
- | FileOut n
- | Key n ->
+ | FileOut n ->
(* guestfish doesn't support string escaping, so neither do we *)
pr " fprintf (stderr, \" \\\"%%s\\\"\", %s);\n" n
+ | Key n ->
+ (* don't print keys *)
+ pr " fprintf (stderr, \" \\\"***\\\"\");\n"
| OptString n -> (* string option *)
pr " if (%s) fprintf (stderr, \" \\\"%%s\\\"\", %s);\n" n n;
pr " else fprintf (stderr, \" null\");\n"