fix: use PRI64 instead of %i for some log (#269)

This commit is contained in:
Eugene 2024-06-01 11:01:58 +05:00 committed by GitHub
parent be6cd1a4bf
commit b6daf5c55b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1717,7 +1717,7 @@ sd_image_t* generate_image(sd_ctx_t* sd_ctx,
for (int b = 0; b < batch_count; b++) { for (int b = 0; b < batch_count; b++) {
int64_t sampling_start = ggml_time_ms(); int64_t sampling_start = ggml_time_ms();
int64_t cur_seed = seed + b; int64_t cur_seed = seed + b;
LOG_INFO("generating image: %i/%i - seed %i", b + 1, batch_count, cur_seed); LOG_INFO("generating image: %i/%i - seed %" PRId64, b + 1, batch_count, cur_seed);
sd_ctx->sd->rng->manual_seed(cur_seed); sd_ctx->sd->rng->manual_seed(cur_seed);
struct ggml_tensor* x_t = NULL; struct ggml_tensor* x_t = NULL;