Change-Id: I337a002d274cd9eed971c58a086ecbce88f1b8d3
fd = open("/run/pepper/stdout.txt", O_CREAT | O_WRONLY | O_APPEND, S_IWUSR | S_IWGRP);
if (fd < 0) {
- PEPPER_TRACE("Failed to open stdout.txt (errno=%s)\n", strerror(errno));
+ PEPPER_TRACE("Failed to open stdout.txt (errno=%m)\n");
return;
}
fd = open("/run/pepper/stderr.txt", O_CREAT | O_WRONLY | O_APPEND, S_IWUSR | S_IWGRP);
if (fd < 0) {
- PEPPER_TRACE("Failed to open stderr.txt (errno=%s)\n", strerror(errno));
+ PEPPER_TRACE("Failed to open stderr.txt (errno=%m)\n");
return;
}