From 0cd85e1b0b35eaebe458f1d40c0df8c35d9d7e21 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 16 Mar 2010 17:07:22 -0700 Subject: [PATCH] ovsdb: Fix error message when parsing an operation fails. Otherwise you get errors with text like "ovsdb operation 2 of 1", which is confusing. --- ovsdb/execution.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2