projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d99a75
)
cfg-mod: Make --query print all values, not just those that are valid keys.
author
Ben Pfaff
<blp@nicira.com>
Tue, 12 May 2009 20:41:02 +0000
(13:41 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 12 May 2009 23:21:56 +0000
(16:21 -0700)
A "key" has a strict syntax, so calling cfg_get_all_keys() will discard
all the values that don't have that syntax.
utilities/cfg-mod.c
patch
|
blob
|
history
diff --git
a/utilities/cfg-mod.c
b/utilities/cfg-mod.c
index 0e3de885b210ff19b3078e0405e5e5026adf0218..f62ffef8bb9682db8f1b99264e5d8d8e65a861ef 100644
(file)
--- a/
utilities/cfg-mod.c
+++ b/
utilities/cfg-mod.c
@@
-79,7
+79,7
@@
print_vals(char *key)
int i;
svec_init(&vals);
- cfg_get_all_
key
s(&vals, "%s", key);
+ cfg_get_all_
string
s(&vals, "%s", key);
for (i=0; i<vals.n; i++) {
printf("%s\n", vals.names[i]);