diff options
| author | Ethan Jackson <ethan@nicira.com> | 2011-07-28 16:49:06 -0700 |
|---|---|---|
| committer | Ethan Jackson <ethan@nicira.com> | 2011-07-28 17:06:00 -0700 |
| commit | db5b4525b20e0fd6a079831638b5eb3f9fb131f2 (patch) | |
| tree | 9a36326c0b21d88497ee8adaa2aa672bf63177da /utilities | |
| parent | f6749eeaea2dd15f195ade25db627d5275903b59 (diff) | |
| download | openvswitch-db5b4525b20e0fd6a079831638b5eb3f9fb131f2.tar.gz | |
ovs-ofctl: Print human readable nx_pull_match() errors.
I've found this makes debugging a bit easier.
Diffstat (limited to 'utilities')
| -rw-r--r-- | utilities/ovs-ofctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c index fef7fdacc..6be899b1e 100644 --- a/utilities/ovs-ofctl.c +++ b/utilities/ovs-ofctl.c @@ -1402,7 +1402,8 @@ do_parse_nx_match(int argc OVS_UNUSED, char *argv[] OVS_UNUSED) puts(out); free(out); } else { - printf("nx_pull_match() returned error %x\n", error); + printf("nx_pull_match() returned error %x (%s)\n", error, + ofputil_error_to_string(error)); } ofpbuf_uninit(&nx_match); |
