stream: Fix error message.
authorBen Pfaff <blp@nicira.com>
Fri, 28 Jan 2011 00:25:07 +0000 (16:25 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 28 Jan 2011 05:06:04 +0000 (21:06 -0800)
This message is supposed to be helpful but with the arguments in the wrong
order it was just confusing.

lib/stream.c

index 540597f..90ec521 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2009, 2010 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -782,7 +782,7 @@ stream_report_content(const void *data, size_t size,
         vlog_rate_limit(module, VLL_WARN, &rl,
                         "%s: received %s data on %s channel",
                         stream_name,
-                        stream_content_type_to_string(expected_type),
-                        stream_content_type_to_string(actual_type));
+                        stream_content_type_to_string(actual_type),
+                        stream_content_type_to_string(expected_type));
     }
 }