ocaml/examples: Fix use of event_callback in debug_logging.ml.

This fixes commit 8bbc5e73cb.
This commit is contained in:
Richard W.M. Jones
2015-10-07 14:16:00 +01:00
parent a332e23dde
commit b1f11ef75b

View File

@@ -65,7 +65,7 @@ let rec main () =
* This example simply redirects these messages to syslog, but
* obviously you could do something more advanced here.
*)
and message_callback g event event_handle buf array =
and message_callback event event_handle buf array =
if String.length buf > 0 then (
let event_name = Guestfs.event_to_string [event] in
Printf.printf "[%s] %S\n%!" event_name buf