Skip to content

Commit 364e034

Browse files
committed
src: fix some warnings and erroneous PRINT_DEBUG
PR-URL: #354 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 461e83a commit 364e034

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/constants.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ int64_t Constants::LoadConstant(const char* name, int64_t def) {
8585
auto constant =
8686
Constants::LookupConstant(target_, (constant_prefix() + name).c_str());
8787
if (!constant.Check()) {
88-
PRINT_DEBUG("Failed to load constant %s, default to %" PRId64, name);
88+
PRINT_DEBUG("Failed to load constant %s, default to %" PRId64, name, def);
8989
return def;
9090
}
9191

src/error.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void Error::PrintInDebugMode(const char* file, int line, const char* funcname,
2222
return;
2323
}
2424
char fmt[kMaxMessageLength];
25-
snprintf(fmt, sizeof(fmt), "[llnode][%s %s:%lld] %s\n", funcname, file, line,
25+
snprintf(fmt, sizeof(fmt), "[llnode][%s %s:%d] %s\n", funcname, file, line,
2626
format);
2727
va_list arglist;
2828
va_start(arglist, format);

0 commit comments

Comments
 (0)