use dprintf() instead of write() calls
This commit is contained in:
parent
c6d81febf6
commit
ed1e85d804
1 changed files with 2 additions and 3 deletions
|
@ -1,3 +1,4 @@
|
|||
#define _POSIX_C_SOURCE 200809L
|
||||
#include<stdlib.h>
|
||||
#include<stdio.h>
|
||||
#include<string.h>
|
||||
|
@ -142,9 +143,7 @@ void psomebar()
|
|||
return;
|
||||
}
|
||||
}
|
||||
write(somebarFd, "status ", 7);
|
||||
write(somebarFd, statusstr[0], strlen(statusstr[0]));
|
||||
write(somebarFd, "\n", 1);
|
||||
dprintf(somebarFd, "status %s\n", statusstr[0]);
|
||||
}
|
||||
|
||||
|
||||
|
|
Reference in a new issue