Skip to content

Commit 3026754

Browse files
authored
Merge pull request #5862 from edwintorok/private/edvint/epoll4.0-cleanup
2 parents 8337fa9 + 857be9e commit 3026754

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

ocaml/forkexecd/src/child.ml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,7 @@ let handle_comms comms_sock fd_sock state =
9494
let log_failure args child_pid reason =
9595
(* The commandline might be too long to clip it *)
9696
let cmdline = String.concat " " args in
97-
let limit = 80 - 3 in
98-
let cmdline' =
99-
if String.length cmdline > limit then
100-
String.sub cmdline 0 limit ^ "..."
101-
else
102-
cmdline
103-
in
104-
Fe_debug.error "%d (%s) %s" child_pid cmdline' reason
97+
Fe_debug.error "%d (%s) %s" child_pid cmdline reason
10598

10699
let report_child_exit comms_sock args child_pid status =
107100
let module Unixext = Xapi_stdext_unix.Unixext in

ocaml/xapi/xapi_globs.ml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,15 +1160,8 @@ let options_of_xapi_globs_spec =
11601160
string_of_float !x
11611161
| Int x ->
11621162
string_of_int !x
1163-
| ShortDurationFromSeconds x ->
1164-
let literal =
1165-
Mtime.Span.to_uint64_ns !x |> fun ns ->
1166-
Int64.div ns 1_000_000_000L |> Int64.to_int |> string_of_int
1167-
in
1168-
Fmt.str "%s (%a)" literal Mtime.Span.pp !x
1169-
| LongDurationFromSeconds x ->
1170-
let literal = Clock.Timer.span_to_s !x |> string_of_float in
1171-
Fmt.str "%s (%a)" literal Mtime.Span.pp !x
1163+
| ShortDurationFromSeconds x | LongDurationFromSeconds x ->
1164+
Fmt.str "%Luns (%a)" (Mtime.Span.to_uint64_ns !x) Mtime.Span.pp !x
11721165
)
11731166
, Printf.sprintf "Set the value of '%s'" name
11741167
)

0 commit comments

Comments
 (0)