Skip to contentSkip to conversation

Add documentation for STRTOSZ_DEFSUFFIX_ macros

PATCH Applied [email protected] 3 participants 3 messages Jan 26, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add documentation for STRTOSZ_DEFSUFFIX_ macros

From: Jes Sorensen <[email protected]>

---
 qemu-common.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
qemu-common.h +7 -0
index c766b99..505e576 100644
@@ -153,6 +153,13 @@ int qemu_fls(int i);
 int qemu_fdatasync(int fd);
 int fcntl_setfl(int fd, int flag);
 
+/*
+ * strtosz() suffixes used to specify the default treatment of an
+ * argument passed to strtosz() without an explicit suffix.
+ * These should be defined using upper case characters in the range
+ * A-Z, as strtosz() will use qemu_toupper() on the given argument
+ * prior to comparison.
+ */
 #define STRTOSZ_DEFSUFFIX_TB	'T'
 #define STRTOSZ_DEFSUFFIX_GB	'G'
 #define STRTOSZ_DEFSUFFIX_MB	'M'
Signature · 1 line
1.7.3.4
Acked-by on v1 1/1
#1 lore raw
Quoted 15 lines · [email protected] writes:

From: Jes Sorensen <[email protected]>

---
 qemu-common.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
qemu-common.h +0 -0
index c766b99..505e576 100644
@@ -153,6 +153,13 @@ int qemu_fls(int i);
 int qemu_fdatasync(int fd);
 int fcntl_setfl(int fd, int flag);
 

qemu-common.h int qemu_fls(int i); · line 165

Quoted 10 lines
qemu-common.h +7 -0
+/*
+ * strtosz() suffixes used to specify the default treatment of an
+ * argument passed to strtosz() without an explicit suffix.
+ * These should be defined using upper case characters in the range
+ * A-Z, as strtosz() will use qemu_toupper() on the given argument
+ * prior to comparison.
+ */
 #define STRTOSZ_DEFSUFFIX_TB	'T'
 #define STRTOSZ_DEFSUFFIX_GB	'G'
 #define STRTOSZ_DEFSUFFIX_MB	'M'

Thanks, Jes!

Applied
#2 lore raw

Am 26.01.2011 12:53, schrieb Markus Armbruster:

Quoted 30 lines
Quoted 15 lines · [email protected] writes:

From: Jes Sorensen <[email protected]>

---
 qemu-common.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
qemu-common.h +0 -0
index c766b99..505e576 100644
@@ -153,6 +153,13 @@ int qemu_fls(int i);
 int qemu_fdatasync(int fd);
 int fcntl_setfl(int fd, int flag);
 

qemu-common.h int qemu_fls(int i); · line 165

Quoted 10 lines
qemu-common.h +7 -0
+/*
+ * strtosz() suffixes used to specify the default treatment of an
+ * argument passed to strtosz() without an explicit suffix.
+ * These should be defined using upper case characters in the range
+ * A-Z, as strtosz() will use qemu_toupper() on the given argument
+ * prior to comparison.
+ */
 #define STRTOSZ_DEFSUFFIX_TB	'T'
 #define STRTOSZ_DEFSUFFIX_GB	'G'
 #define STRTOSZ_DEFSUFFIX_MB	'M'

Thanks, Jes!

Quoted 1 line

Thanks, applied to the block branch.

Kevin