diff options
Diffstat (limited to 'src/third_party/wiredtiger/test/csuite/incr_backup/main.c')
-rw-r--r-- | src/third_party/wiredtiger/test/csuite/incr_backup/main.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/third_party/wiredtiger/test/csuite/incr_backup/main.c b/src/third_party/wiredtiger/test/csuite/incr_backup/main.c index fee64ff683a..e260081b78c 100644 --- a/src/third_party/wiredtiger/test/csuite/incr_backup/main.c +++ b/src/third_party/wiredtiger/test/csuite/incr_backup/main.c @@ -221,7 +221,7 @@ active_files_print(ACTIVE_FILES *active, const char *msg) { uint32_t i; - VERBOSE(6, "Active files: %s, %d entries\n", msg, (int)active->count); + VERBOSE(6, "Active files: %s, %" PRIu32 " entries\n", msg, active->count); for (i = 0; i < active->count; i++) VERBOSE(6, " %s\n", active->names[i]); } @@ -357,7 +357,7 @@ table_changes(WT_SESSION *session, TABLE *table) value = dcalloc(1, table->max_value_size); value2 = dcalloc(1, table->max_value_size); nrecords = __wt_random(&table->rand) % 1000; - VERBOSE(4, "changing %d records in %s\n", (int)nrecords, table->name); + VERBOSE(4, "changing %" PRIu32 " records in %s\n", nrecords, table->name); testutil_check(session->open_cursor(session, table->name, NULL, NULL, &cur)); for (i = 0; i < nrecords; i++) { change_count = table->change_count++; @@ -504,8 +504,8 @@ base_backup(WT_CONNECTION *conn, WT_RAND_STATE *rand, const char *home, const ch granularity += 1; } testutil_check(__wt_snprintf(buf, sizeof(buf), - "incremental=(granularity=%" PRIu32 "%c,enabled=true,this_id=ID%d)", granularity, - granularity_unit, (int)tinfo->full_backup_number)); + "incremental=(granularity=%" PRIu32 "%c,enabled=true,this_id=ID%" PRIu32 ")", granularity, + granularity_unit, tinfo->full_backup_number)); VERBOSE(3, "open_cursor(session, \"backup:\", NULL, \"%s\", &cursor)\n", buf); testutil_check(session->open_cursor(session, "backup:", NULL, buf, &cursor)); @@ -568,8 +568,9 @@ incr_backup(WT_CONNECTION *conn, const char *home, const char *backup_home, TABL active_files_init(&active); testutil_check(conn->open_session(conn, NULL, NULL, &session)); - testutil_check(__wt_snprintf(buf, sizeof(buf), "incremental=(src_id=ID%d,this_id=ID%d)", - (int)tinfo->full_backup_number, (int)tinfo->incr_backup_number++)); + testutil_check( + __wt_snprintf(buf, sizeof(buf), "incremental=(src_id=ID%" PRIu32 ",this_id=ID%" PRIu32 ")", + tinfo->full_backup_number, tinfo->incr_backup_number++)); VERBOSE(3, "open_cursor(session, \"backup:\", NULL, \"%s\", &cursor)\n", buf); testutil_check(session->open_cursor(session, "backup:", NULL, buf, &cursor)); @@ -789,7 +790,7 @@ main(int argc, char *argv[]) testutil_work_dir_from_path(home, sizeof(home), working_dir); testutil_check(__wt_snprintf(backup_dir, sizeof(backup_dir), "%s.BACKUP", home)); testutil_check(__wt_snprintf(backup_check, sizeof(backup_check), "%s.CHECK", home)); - fprintf(stderr, "Seed: %" PRIu64 "\n", seed); + printf("Seed: %" PRIu64 "\n", seed); testutil_check( __wt_snprintf(command, sizeof(command), "rm -rf %s %s; mkdir %s", home, backup_dir, home)); @@ -840,7 +841,7 @@ main(int argc, char *argv[]) next_checkpoint = __wt_random(&rnd) % tinfo.table_count; for (iter = 0; iter < ITERATIONS; iter++) { - VERBOSE(1, "**** iteration %d ****\n", (int)iter); + VERBOSE(1, "**** iteration %" PRIu32 " ****\n", iter); /* * We have schema changes during about half the iterations. The number of schema changes |