X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utilities%2Fovs-appctl.c;h=88ecfe324ac4934dd8602825ae3c621d1571453b;hb=3a27375ead10be81e7122aaff8bb2a17c7c202a7;hp=dc4574267ea1ad62847e8993471f1f590be3c0db;hpb=b43c6fe279a5630dfbc0273e06bd1e8ca530ba35;p=openvswitch diff --git a/utilities/ovs-appctl.c b/utilities/ovs-appctl.c index dc457426..88ecfe32 100644 --- a/utilities/ovs-appctl.c +++ b/utilities/ovs-appctl.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010 Nicira Networks. + * Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -65,6 +65,7 @@ main(int argc, char *argv[]) ovs_fatal(error, "%s: transaction error", target); } if (code / 100 != 2) { + fputs(reply, stderr); ovs_error(0, "%s: server returned reply code %03d", target, code); exit(2); } @@ -84,7 +85,7 @@ usage(void) "usage: %s [TARGET] COMMAND [ARG...]\n" "Targets:\n" " -t, --target=TARGET pidfile or socket to contact\n" - "Common commands:" + "Common commands:\n" " help List commands supported by the target\n" " vlog/list List current logging levels\n" " vlog/set MODULE[:FACILITY[:LEVEL]]\n" @@ -108,7 +109,7 @@ parse_command_line(int argc, char *argv[]) {"execute", no_argument, NULL, 'e'}, {"help", no_argument, NULL, 'h'}, {"version", no_argument, NULL, 'V'}, - {0, 0, 0, 0}, + {NULL, 0, NULL, 0}, }; const char *target; int e_options;