miragesdk: remove dead-code and code repetition

Signed-off-by: Thomas Gazagnaire <thomas@gazagnaire.org>
This commit is contained in:
Thomas Gazagnaire
2017-04-07 17:52:55 +02:00
parent 95d362ab7e
commit 0d7e584e32
2 changed files with 14 additions and 23 deletions

View File

@@ -45,8 +45,8 @@ let forward ~src ~dst =
Log.err (fun l -> l "forward[%a => %a] %a" pp src pp dst pp_error e);
Lwt.return_unit
| Ok (`Data buf) ->
Log.debug (fun l -> l "forward[%a => %a] %a"
pp src pp dst Cstruct.hexdump_pp buf);
Log.debug (fun l -> l "forward[%a => %a] @[%S@]"
pp src pp dst @@ Cstruct.to_string buf);
write dst buf >>= function
| Ok () -> loop ()
| Error e ->