From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: (v2) docs/command line: Clarify the behavior with invalid input. Date: Fri, 31 Aug 2012 17:49:31 +0100 Message-ID: <5040EB1B.80004@citrix.com> References: <5040D05D.8090808@citrix.com> <5040F61A0200007800097E86@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050006010605040901060001" Return-path: In-Reply-To: <5040F61A0200007800097E86@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --------------050006010605040901060001 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit On 31/08/12 16:36, Jan Beulich wrote: >>>> On 31.08.12 at 16:55, Andrew Cooper wrote: > I don't think we should specifically document the behavior for > unexpected value; instead, the behavior should simply be > "undefined". > > Jan > Yes ok. v2 attached. -- Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com --------------050006010605040901060001 Content-Type: text/x-patch; name="docs-cmdline.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="docs-cmdline.patch" # HG changeset patch # Parent 993922337bc1ceaac1054c31ba683af74e737cc1 docs/command line: Clarify the behavior with invalid input. Signed-off-by: Andrew Cooper -- v2: State that invalid input is undefined, rather than describing the current behaviour. diff -r 993922337bc1 docs/misc/xen-command-line.markdown --- a/docs/misc/xen-command-line.markdown +++ b/docs/misc/xen-command-line.markdown @@ -11,7 +11,8 @@ Hypervisor. ## Types of parameter Most parameters take the form `option=value`. Different options on -the command line should be space delimited. +the command line should be space delimited. All options are case +sensitive, as are all values unless explicitly noted. ### Boolean (``) @@ -35,6 +36,9 @@ Disable x2apic support (if present) Enable synchronous console mode > `sync_console` +Explicitly specifying any value other than those listed above is +undefined, as is stacking a `no-` prefix with an explicit value. + ### Integer (``) An integer parameter will default to decimal and may be prefixed with @@ -42,6 +46,9 @@ a `-` for negative numbers. Alternative used by prefixing the number with `0x`, or an octal number may be used if a leading `0` is present. +Providing a string which does not validly convert to an integer is +undefined. + ### Size (``) A size parameter may be any integer, with a size suffix @@ -51,7 +58,8 @@ A size parameter may be any integer, wit * `K` or `k`: Kilo (2^10) * `B` or `b`: Bytes -Without a size suffix, the default will be kilo. +Without a size suffix, the default will be kilo. Providing a suffix +other than those listed above is undefined. ### String --------------050006010605040901060001 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --------------050006010605040901060001--