mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
OCaml tools: fix 3999 -> 3339 typo
RFC 3339 is the actual RFC for date/time strings.
Typo found by Martin 'eagle eyes' Kletzander.
Fixes commit f79129b8dc.
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
extern value guestfs_int_mllib_inspect_decrypt (value gv, value gpv, value keysv);
|
||||
extern value guestfs_int_mllib_set_echo_keys (value unitv);
|
||||
extern value guestfs_int_mllib_set_keys_from_stdin (value unitv);
|
||||
extern value guestfs_int_mllib_rfc3999_date_time_string (value unitv);
|
||||
extern value guestfs_int_mllib_rfc3339_date_time_string (value unitv);
|
||||
|
||||
/* Interface with the guestfish inspection and decryption code. */
|
||||
int echo_keys = 0;
|
||||
@@ -108,7 +108,7 @@ guestfs_int_mllib_set_keys_from_stdin (value unitv)
|
||||
}
|
||||
|
||||
value
|
||||
guestfs_int_mllib_rfc3999_date_time_string (value unitv)
|
||||
guestfs_int_mllib_rfc3339_date_time_string (value unitv)
|
||||
{
|
||||
CAMLparam1 (unitv);
|
||||
char buf[64];
|
||||
|
||||
@@ -32,7 +32,7 @@ and key_store_key =
|
||||
external c_inspect_decrypt : Guestfs.t -> int64 -> (string * key_store_key) list -> unit = "guestfs_int_mllib_inspect_decrypt"
|
||||
external c_set_echo_keys : unit -> unit = "guestfs_int_mllib_set_echo_keys" "noalloc"
|
||||
external c_set_keys_from_stdin : unit -> unit = "guestfs_int_mllib_set_keys_from_stdin" "noalloc"
|
||||
external c_rfc3999_date_time_string : unit -> string = "guestfs_int_mllib_rfc3999_date_time_string"
|
||||
external c_rfc3339_date_time_string : unit -> string = "guestfs_int_mllib_rfc3339_date_time_string"
|
||||
|
||||
type machine_readable_fn = {
|
||||
pr : 'a. ('a, unit, string, unit) format4 -> 'a;
|
||||
@@ -93,7 +93,7 @@ let log_as_json msgtype msg =
|
||||
| Some { pr } ->
|
||||
let json = [
|
||||
"message", JSON.String msg;
|
||||
"timestamp", JSON.String (c_rfc3999_date_time_string ());
|
||||
"timestamp", JSON.String (c_rfc3339_date_time_string ());
|
||||
"type", JSON.String msgtype;
|
||||
] in
|
||||
pr "%s\n" (JSON.string_of_doc ~fmt:JSON.Compact json)
|
||||
|
||||
@@ -3295,7 +3295,7 @@ within a single line, below it is indented for readability):
|
||||
C<type> can be: C<message> for progress messages, C<info> for
|
||||
information messages, C<warning> for warning messages, and C<error>
|
||||
for error message.
|
||||
C<timestamp> is the L<RFC 3999|https://www.ietf.org/rfc/rfc3339.txt>
|
||||
C<timestamp> is the L<RFC 3339|https://www.ietf.org/rfc/rfc3339.txt>
|
||||
timestamp of the message.
|
||||
|
||||
In addition to that, a subset of these tools support an extra string
|
||||
|
||||
Reference in New Issue
Block a user