* [Qemu-devel] [PATCH] Add documentation for STRTOSZ_DEFSUFFIX_ macros
@ 2011-01-26 10:54 Jes.Sorensen
2011-01-26 11:53 ` Markus Armbruster
0 siblings, 1 reply; 3+ messages in thread
From: Jes.Sorensen @ 2011-01-26 10:54 UTC (permalink / raw)
To: kwolf; +Cc: qemu-devel, armbru
From: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
qemu-common.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/qemu-common.h b/qemu-common.h
index c766b99..505e576 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -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'
--
1.7.3.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] Add documentation for STRTOSZ_DEFSUFFIX_ macros
2011-01-26 10:54 [Qemu-devel] [PATCH] Add documentation for STRTOSZ_DEFSUFFIX_ macros Jes.Sorensen
@ 2011-01-26 11:53 ` Markus Armbruster
2011-01-26 11:57 ` Kevin Wolf
0 siblings, 1 reply; 3+ messages in thread
From: Markus Armbruster @ 2011-01-26 11:53 UTC (permalink / raw)
To: Jes.Sorensen; +Cc: kwolf, qemu-devel
Jes.Sorensen@redhat.com writes:
> From: Jes Sorensen <Jes.Sorensen@redhat.com>
>
> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
> ---
> qemu-common.h | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/qemu-common.h b/qemu-common.h
> index c766b99..505e576 100644
> --- a/qemu-common.h
> +++ b/qemu-common.h
> @@ -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'
Thanks, Jes!
Acked-by: Markus Armbruster <armbru@redhat.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] Add documentation for STRTOSZ_DEFSUFFIX_ macros
2011-01-26 11:53 ` Markus Armbruster
@ 2011-01-26 11:57 ` Kevin Wolf
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Wolf @ 2011-01-26 11:57 UTC (permalink / raw)
To: Markus Armbruster; +Cc: Jes.Sorensen, qemu-devel
Am 26.01.2011 12:53, schrieb Markus Armbruster:
> Jes.Sorensen@redhat.com writes:
>
>> From: Jes Sorensen <Jes.Sorensen@redhat.com>
>>
>> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
>> ---
>> qemu-common.h | 7 +++++++
>> 1 files changed, 7 insertions(+), 0 deletions(-)
>>
>> diff --git a/qemu-common.h b/qemu-common.h
>> index c766b99..505e576 100644
>> --- a/qemu-common.h
>> +++ b/qemu-common.h
>> @@ -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'
>
> Thanks, Jes!
>
> Acked-by: Markus Armbruster <armbru@redhat.com>
Thanks, applied to the block branch.
Kevin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-26 11:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-26 10:54 [Qemu-devel] [PATCH] Add documentation for STRTOSZ_DEFSUFFIX_ macros Jes.Sorensen
2011-01-26 11:53 ` Markus Armbruster
2011-01-26 11:57 ` Kevin Wolf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.