Skip to content

Commit

Permalink
Fix printf warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsracz committed Oct 9, 2019
1 parent 1a00e05 commit 00c5b6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openlcb/SimpleStack.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ int SimpleStackBase::create_config_file_if_needed(const InternalConfigData &cfg,
// automatically flush to disk on write.
if ((long)statbuf.st_size < (long)cfg.version().end_offset())
{
LOG(VERBOSE, "%s is too short (%ld vs %d), forcing reset.",
CONFIG_FILENAME, statbuf.st_size, cfg.version().end_offset());
LOG(VERBOSE, "%s is too short (%d vs %d), forcing reset.",
CONFIG_FILENAME, (int)statbuf.st_size, cfg.version().end_offset());
reset = true;
}
if (!reset && cfg.version().read(fd) != expected_version)
Expand Down

0 comments on commit 00c5b6d

Please sign in to comment.