Skip to content

Commit e15789d

Browse files
labathmemfrob
authored andcommitted
[lldb] More missing includes in TestGdbRemote_vContThreads
1 parent 13b3acc commit e15789d

File tree

1 file changed

+5
-3
lines changed
  • lldb/test/API/tools/lldb-server/vCont-threads

1 file changed

+5
-3
lines changed

lldb/test/API/tools/lldb-server/vCont-threads/main.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <chrono>
44
#include <cinttypes>
55
#include <csignal>
6+
#include <cstdio>
67
#include <cstdlib>
78
#include <cstring>
89
#include <thread>
@@ -13,8 +14,9 @@ pseudo_barrier_t barrier;
1314

1415
static void sigusr1_handler(int signo) {
1516
char buf[100];
16-
snprintf(buf, sizeof(buf), "received SIGUSR1 on thread id: %" PRIx64 "\n",
17-
get_thread_id());
17+
std::snprintf(buf, sizeof(buf),
18+
"received SIGUSR1 on thread id: %" PRIx64 "\n",
19+
get_thread_id());
1820
write(STDOUT_FILENO, buf, strlen(buf));
1921
}
2022

@@ -36,7 +38,7 @@ int main(int argc, char **argv) {
3638

3739
pseudo_barrier_wait(barrier);
3840

39-
puts("@started");
41+
std::puts("@started");
4042

4143
for (std::thread &thread : threads)
4244
thread.join();

0 commit comments

Comments
 (0)