s3:registry: fix some debug messages in regdb_ini()
authorMichael Adam <obnox@samba.org>
Fri, 25 Jun 2010 10:32:22 +0000 (12:32 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 25 Jun 2010 15:35:42 +0000 (17:35 +0200)
source3/registry/reg_backend_db.c

index e861d46d8814db513926994f175c193e254bb06c..27170a5a3a3abb1d1e2167c390931871ff723feb 100644 (file)
@@ -498,11 +498,11 @@ WERROR regdb_init(void)
                status = dbwrap_trans_store_int32(regdb, vstring, REGVER_V2);
                if (!NT_STATUS_IS_OK(status)) {
                        DEBUG(1, ("regdb_init: error storing %s = %d: %s\n",
-                                 vstring, REGVER_V1, nt_errstr(status)));
+                                 vstring, REGVER_V2, nt_errstr(status)));
                        return ntstatus_to_werror(status);
                } else {
                        DEBUG(10, ("regdb_init: stored %s = %d\n",
-                                 vstring, REGVER_V1));
+                                 vstring, REGVER_V2));
                }
                vers_id = REGVER_V2;
        }
@@ -524,12 +524,12 @@ WERROR regdb_init(void)
                        status = dbwrap_trans_store_int32(regdb, vstring, REGVER_V2);
                        if (!NT_STATUS_IS_OK(status)) {
                                DEBUG(1, ("regdb_init: error storing %s = %d: %s\n",
-                                         vstring, REGVER_V1, nt_errstr(status)));
+                                         vstring, REGVER_V2, nt_errstr(status)));
                                regdb->transaction_cancel(regdb);
                                return ntstatus_to_werror(status);
                        } else {
                                DEBUG(10, ("regdb_init: stored %s = %d\n",
-                                         vstring, REGVER_V1));
+                                         vstring, REGVER_V2));
                        }
                        if (regdb->transaction_commit(regdb) != 0) {
                                return WERR_REG_IO_FAILURE;