Fix printf format build warning on MIPS.

Closes #2271. Thanks to Karl Palsson.
This commit is contained in:
Roger A. Light 2021-08-24 13:58:15 +01:00
parent 9b25dd3b0d
commit f952d19da1
2 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ Build:
- Fix installation using WITH_TLS=no. Closes #2281. - Fix installation using WITH_TLS=no. Closes #2281.
- Fix builds with libressl 3.4.0. Closes #2198. - Fix builds with libressl 3.4.0. Closes #2198.
- Remove some unnecessary code guards related to libressl. - Remove some unnecessary code guards related to libressl.
- Fix printf format build warning on MIPS. Closes #2271.
2.0.11 - 2021-06-08 2.0.11 - 2021-06-08

View File

@ -130,7 +130,7 @@ static int dump__cfg_chunk_process(FILE *db_fd, uint32_t length)
if(do_print) printf("\tShutdown: %d\n", chunk.shutdown); if(do_print) printf("\tShutdown: %d\n", chunk.shutdown);
if(do_print) printf("\tDB ID size: %d\n", chunk.dbid_size); if(do_print) printf("\tDB ID size: %d\n", chunk.dbid_size);
if(chunk.dbid_size != sizeof(dbid_t)){ if(chunk.dbid_size != sizeof(dbid_t)){
fprintf(stderr, "Error: Incompatible database configuration (dbid size is %d bytes, expected %ld)", fprintf(stderr, "Error: Incompatible database configuration (dbid size is %d bytes, expected %zu)",
chunk.dbid_size, sizeof(dbid_t)); chunk.dbid_size, sizeof(dbid_t));
fclose(db_fd); fclose(db_fd);
return 1; return 1;