1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-05 19:51:45 +00:00

ldr: Fix printf format string for size_t

%z should be used for size_t, otherwise the wrong value may be printed.

Fixes two -Wformat warnings.
This commit is contained in:
Léo Lam 2018-05-05 17:47:25 +02:00
parent 2c07b5a2fb
commit bd42514af0
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ Result DebugMonitorService::dispatch(IpcParsedCommand &r, IpcCommand &out_c, u64
} }
std::tuple<Result> DebugMonitorService::add_title_to_launch_queue(u64 tid, InPointer<char> args) { std::tuple<Result> DebugMonitorService::add_title_to_launch_queue(u64 tid, InPointer<char> args) {
fprintf(stderr, "Add to launch queue: %p, %X\n", args.pointer, args.num_elements); fprintf(stderr, "Add to launch queue: %p, %zX\n", args.pointer, args.num_elements);
return {LaunchQueue::add(tid, args.pointer, args.num_elements)}; return {LaunchQueue::add(tid, args.pointer, args.num_elements)};
} }

View file

@ -20,7 +20,7 @@ Result ShellService::dispatch(IpcParsedCommand &r, IpcCommand &out_c, u64 cmd_id
} }
std::tuple<Result> ShellService::add_title_to_launch_queue(u64 tid, InPointer<char> args) { std::tuple<Result> ShellService::add_title_to_launch_queue(u64 tid, InPointer<char> args) {
fprintf(stderr, "Add to launch queue: %p, %X\n", args.pointer, args.num_elements); fprintf(stderr, "Add to launch queue: %p, %zX\n", args.pointer, args.num_elements);
return {LaunchQueue::add(tid, args.pointer, args.num_elements)}; return {LaunchQueue::add(tid, args.pointer, args.num_elements)};
} }