git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofp-error: Remove ofperr_domain from external API
[sliver-openvswitch.git]
/
utilities
/
ovs-ofctl.c
diff --git
a/utilities/ovs-ofctl.c
b/utilities/ovs-ofctl.c
index
b4f4483
..
13dd0e3
100644
(file)
--- a/
utilities/ovs-ofctl.c
+++ b/
utilities/ovs-ofctl.c
@@
-2660,17
+2660,14
@@
ofctl_print_error(int argc OVS_UNUSED, char *argv[])
}
for (version = 0; version <= UINT8_MAX; version++) {
}
for (version = 0; version <= UINT8_MAX; version++) {
- const struct ofperr_domain *domain;
-
- domain = ofperr_domain_from_version(version);
- if (!domain) {
+ const char *name = ofperr_domain_get_name(version);
+ if (!name) {
continue;
}
continue;
}
-
printf("%s: %d,%d\n",
printf("%s: %d,%d\n",
- ofperr_domain_get_name(
domai
n),
- ofperr_get_type(error,
domai
n),
- ofperr_get_code(error,
domai
n));
+ ofperr_domain_get_name(
versio
n),
+ ofperr_get_type(error,
versio
n),
+ ofperr_get_code(error,
versio
n));
}
}
}
}