From: Ben Pfaff Date: Wed, 17 Mar 2010 00:07:22 +0000 (-0700) Subject: ovsdb: Fix error message when parsing an operation fails. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cd85e1b0b35eaebe458f1d40c0df8c35d9d7e21;p=openvswitch ovsdb: Fix error message when parsing an operation fails. Otherwise you get errors with text like "ovsdb operation 2 of 1", which is confusing. --- diff --git a/ovsdb/execution.c b/ovsdb/execution.c index b984b1b5..5b6762f0 100644 --- a/ovsdb/execution.c +++ b/ovsdb/execution.c @@ -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) {