ovsdb: Fix error message when parsing an operation fails.
authorBen Pfaff <blp@nicira.com>
Wed, 17 Mar 2010 00:07:22 +0000 (17:07 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 18 Mar 2010 18:31:10 +0000 (11:31 -0700)
Otherwise you get errors with text like "ovsdb operation 2 of 1", which
is confusing.

ovsdb/execution.c

index b984b1b528c73ea57233284913935678494b48f0..5b6762f0753ff7b9f0e451ba9626352134f61674 100644 (file)
@@ -137,7 +137,7 @@ ovsdb_execute(struct ovsdb *db, const struct json *params,
 
         /* Parse and execute operation. */
         ovsdb_parser_init(&parser, operation,
-                          "ovsdb operation %zu of %zu", i + 1, n_operations);
+                          "ovsdb operation %zu of %zu", i, n_operations);
         op = ovsdb_parser_member(&parser, "op", OP_ID);
         result = json_object_create();
         if (op) {