aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-09-27 13:03:00 -0700
committerBen Pfaff <blp@nicira.com>2011-10-18 13:43:39 -0700
commit15c819b439d9c76e51ebc99c88e55182707732bd (patch)
treef91247bfef544a5163119a9cb13118a30e5122be /lib
parent2c84fdf286a0f74246c7d2f2b824ba6fb2811930 (diff)
nx-match: Improve log message for errors parsing NX flow matches.
Diffstat (limited to 'lib')
-rw-r--r--lib/nx-match.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/nx-match.c b/lib/nx-match.c
index beaed3da..a850be2a 100644
--- a/lib/nx-match.c
+++ b/lib/nx-match.c
@@ -225,12 +225,15 @@ nx_pull_match(struct ofpbuf *b, unsigned int match_len, uint16_t priority,
}
if (error) {
+ char *msg = ofputil_error_to_string(error);
VLOG_DBG_RL(&rl, "bad nxm_entry with vendor=%"PRIu32", "
"field=%"PRIu32", hasmask=%"PRIu32", type=%"PRIu32" "
- "(error %x)",
+ "(%s)",
NXM_VENDOR(header), NXM_FIELD(header),
NXM_HASMASK(header), NXM_TYPE(header),
- error);
+ msg);
+ free(msg);
+
return error;
}