ofp-util: Improve log message for bad OpenFlow action length.
authorBen Pfaff <blp@nicira.com>
Thu, 23 Dec 2010 18:36:02 +0000 (10:36 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 27 Dec 2010 17:45:06 +0000 (09:45 -0800)
commit35c4693ab8d10c1271484f39a72751f613cf8de1
tree538513189b9f6caaaf64040902cc3c3da6e8a857
parent01ca1bfcbdd315519e7da58052a9c1359f9e72f7
ofp-util: Improve log message for bad OpenFlow action length.

First, this is an important message since it indicates a bug in the
controller, so log it at warning level instead of debug level--we want to
know about it.

Second, properly byteswap the action type.

Third, use the correct PRIu16 format specified for a uint16_t.
lib/ofp-util.c