summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-11-05 11:54:54 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-11-05 11:54:54 +0000
commit6283982e36eeb3d19940618dc0aec88da08c7516 (patch)
tree85d51207306584997926c47ff8f5f083fb3361cc /generator
parenta232e62dcf508517a32b9a8d7e4529e827be721b (diff)
downloadlibguestfs-6283982e36eeb3d19940618dc0aec88da08c7516.tar.gz
libguestfs-6283982e36eeb3d19940618dc0aec88da08c7516.tar.xz
libguestfs-6283982e36eeb3d19940618dc0aec88da08c7516.zip
Don't print out key material in trace output.
Diffstat (limited to 'generator')
-rw-r--r--generator/generator_c.ml6
1 files changed, 4 insertions, 2 deletions
diff --git a/generator/generator_c.ml b/generator/generator_c.ml
index 7f55efa5..28cecdba 100644
--- a/generator/generator_c.ml
+++ b/generator/generator_c.ml
@@ -610,10 +610,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"