Skip to contentSkip to conversation

docs/misc: livepatch: Espace backslash

PATCH In review Julien Grall 4 participants 5 messages Jan 13, 2020 – Jan 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/misc: livepatch: Espace backslash

pandoc is currently failing to generate the pdf with the following error:
! Undefined control sequence.
l.1048 metadata string format is: key=value\0

In this case, we want to print \0 so we need to backslash-escape the first character.

Interestingly pandoc will not complain when creating html and will just ignore \0 completely.

Fixes 5083e0ff93 ("livepatch: Add metadata runtime retrieval mechanism")
Cc Pawel Wieczorkiewicz <[email protected]>
---
 docs/misc/livepatch.pandoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/misc/livepatch.pandoc +1 -1
index 2f3f95ed37..9473ad5991 100644
@@ -739,7 +739,7 @@ The caller provides:
    Caller *MUST* allocate enough space to be able to store all received data
    (i.e. total allocated space *MUST* match the `metadata_total_size` value
    provided by the hypervisor). Individual payload metadata string can be of
-   arbitrary length. The metadata string format is: key=value\0...key=value\0.
+   arbitrary length. The metadata string format is: key=value\\0...key=value\\0.
  * `metadata_len` - Virtual address of where to write the length of each metadata
    string of the payload. Caller *MUST* allocate up to `nr` of them. Each *MUST*
    be of sizeof(uint32_t) (4 bytes).
Signature · 7 lines
2.17.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 38 lines · Julien Grall

pandoc is currently failing to generate the pdf with the following error:
! Undefined control sequence.
l.1048 metadata string format is: key=value\0

In this case, we want to print \0 so we need to backslash-escape the first character.

Interestingly pandoc will not complain when creating html and will just ignore \0 completely.

Fixes 5083e0ff93 ("livepatch: Add metadata runtime retrieval mechanism")
Cc Pawel Wieczorkiewicz <[email protected]>

---
docs/misc/livepatch.pandoc | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
docs/misc/livepatch.pandoc +1 -1
index 2f3f95ed37..9473ad5991 100644
@@ -739,7 +739,7 @@ The caller provides:
   Caller *MUST* allocate enough space to be able to store all received data
   (i.e. total allocated space *MUST* match the `metadata_total_size` value
   provided by the hypervisor). Individual payload metadata string can be of
-   arbitrary length. The metadata string format is: key=value\0...key=value\0.
+   arbitrary length. The metadata string format is: key=value\\0...key=value\\0.
 * `metadata_len` - Virtual address of where to write the length of each metadata
   string of the payload. Caller *MUST* allocate up to `nr` of them. Each *MUST*
   be of sizeof(uint32_t) (4 bytes).
Signature · 1 line
2.17.1

Sorry for yet another problem...

Amazon Development Center Germany GmbH
Krausenstr. 38
10117 Berlin
Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
Sitz: Berlin
Ust-ID: DE 289 237 879

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reviewed-by on v1 1/1
#2 lore raw
In reply to Julien Grall
Quoted 24 lines · Julien Grall

pandoc is currently failing to generate the pdf with the following error:
! Undefined control sequence.
l.1048 metadata string format is: key=value\0

In this case, we want to print \0 so we need to backslash-escape the first character.

Interestingly pandoc will not complain when creating html and will just ignore \0 completely.

Fixes 5083e0ff93 ("livepatch: Add metadata runtime retrieval mechanism")
Cc Pawel Wieczorkiewicz <[email protected]>
---
 docs/misc/livepatch.pandoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/misc/livepatch.pandoc +0 -0
index 2f3f95ed37..9473ad5991 100644

docs/misc/livepatch.pandoc The caller provides: · line 745

Quoted 8 lines
docs/misc/livepatch.pandoc +1 -1
@@ -739,7 +739,7 @@ The caller provides:
    Caller *MUST* allocate enough space to be able to store all received data
    (i.e. total allocated space *MUST* match the `metadata_total_size` value
    provided by the hypervisor). Individual payload metadata string can be of
-   arbitrary length. The metadata string format is: key=value\0...key=value\0.
+   arbitrary length. The metadata string format is: key=value\\0...key=value\\0.
  * `metadata_len` - Virtual address of where to write the length of each metadata
    string of the payload. Caller *MUST* allocate up to `nr` of them. Each *MUST*
    be of sizeof(uint32_t) (4 bytes).

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw
In reply to Julien Grall
Quoted 7 lines

-----Original Message-----
From: Xen-devel <[email protected]> On Behalf Of Julien Grall
Sent: 13 January 2020 23:12
To: [email protected]
Cc: Ross Lagerwall <[email protected]>; Wieczorkiewicz, Pawel <[email protected]>; Julien Grall <[email protected]>; Konrad Rzeszutek

Wilk

Quoted 3 lines

<[email protected]>
Subject: [Xen-devel] [PATCH] docs/misc: livepatch: Espace backslash

s/Espace/Escape, I assume

Paul
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#4 lore raw

Hi Paul,

Quoted 7 lines · Paul
Quoted 7 lines

-----Original Message-----
From: Xen-devel <[email protected]> On Behalf Of Julien Grall
Sent: 13 January 2020 23:12
To: [email protected]
Cc: Ross Lagerwall <[email protected]>; Wieczorkiewicz, Pawel <[email protected]>; Julien Grall <[email protected]>; Konrad Rzeszutek

Quoted 6 lines

Wilk

Quoted 3 lines

<[email protected]>
Subject: [Xen-devel] [PATCH] docs/misc: livepatch: Espace backslash

s/Espace/Escape, I assume

Hmm, yes. Thank you for spotting it!

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel