Skip to content

Commit e4f2f36

Browse files
authored
Improve debug messages (#3)
Fix the formatting string 🤦🏼 .
1 parent 8a5cb55 commit e4f2f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lockmem.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ int main(int Argc, const char *Argv[]) {
115115
false, ProcessId);
116116

117117
if (Process == nullptr) {
118-
printf("Failed to OpenProcess(%s) (gle=%d), exiting.\n", GetLastError());
118+
printf("Failed to OpenProcess(%s) (gle=%d), exiting.\n", Argv[1], GetLastError());
119119
return EXIT_FAILURE;
120120
}
121121

0 commit comments

Comments
 (0)