mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
ocaml/examples: Fix use of event_callback in debug_logging.ml.
This fixes commit 8bbc5e73cb.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user