Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions unix/console_unix.ml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ type 'a io = 'a Lwt.t
type error = [ `Invalid_console of string ]
type buffer = Cstruct.t

let error_message (`Invalid_console msg) =
Printf.sprintf "Invalid console '%s'" msg

let connect id =
let read_buffer = Cstruct.create 1024 in
let closed = false in
Expand Down
4 changes: 3 additions & 1 deletion xen/console_xen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ type 'a io = 'a Lwt.t

type error = [ `Invalid_console of string ]
type id = string
exception Internal_error of string

let error_message (`Invalid_console msg) =
Printf.sprintf "Invalid console '%s'" msg

let h = Eventchn.init ()
let id { id } = string_of_int id
Expand Down