On Fri, Jul 13, 2012 at 01:12:05PM -0700, Ethan Jackson wrote:
> It's convenient to have the OVS version directly in the logs so one
> doesn't have to go digging through ovs-bugtool output to find it.
> This patch also makes the version string fit entirely on one line.
The reason the version string is split between lines is that we're
following the GNU coding standard for --version, which says:
4.7.1 `--version'
-----------------
The standard `--version' option should direct the program to print
information about its name, version, origin and legal status, all on
standard output, and then exit successfully. Other options and
arguments should be ignored once this is seen, and the program should
not perform its normal function.
The first line is meant to be easy for a program to parse; the
version number proper starts after the last space. In addition, it
contains the canonical name for this program, in this format:
GNU Emacs 19.30
The program's name should be a constant string; _don't_ compute it from
`argv[0]'. The idea is to state the standard or canonical name for the
program, not its file name. There are other ways to find out the
precise file name where a command is found in `PATH'.
If the program is a subsidiary part of a larger package, mention the
package name in parentheses, like this:
emacsserver (GNU Emacs) 19.30
It might be reasonable for daemonize_start() to always do this. Then
we'd get this behavior in every daemon automatically; I don't know of
a reason that's a bad thing.
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev