mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-23 23:10:57 +07:00
test: extend test-send to send some weirder data
This commit is contained in:
parent
0f91dd8749
commit
7fb4d896e1
@ -20,6 +20,8 @@
|
|||||||
***/
|
***/
|
||||||
|
|
||||||
#include <systemd/sd-journal.h>
|
#include <systemd/sd-journal.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|
||||||
@ -57,5 +59,20 @@ int main(int argc, char *argv[]) {
|
|||||||
"WITH_BINARY=this is a binary value \a",
|
"WITH_BINARY=this is a binary value \a",
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
syslog(LOG_NOTICE, "Hello World!");
|
||||||
|
|
||||||
|
sd_journal_print(LOG_NOTICE, "Hello World");
|
||||||
|
|
||||||
|
sd_journal_send("MESSAGE=Hello World!",
|
||||||
|
"MESSAGE_ID=52fb62f99e2c49d89cfbf9d6de5e3555",
|
||||||
|
"PRIORITY=5",
|
||||||
|
"HOME=%s", getenv("HOME"),
|
||||||
|
"TERM=%s", getenv("TERM"),
|
||||||
|
"PAGE_SIZE=%li", sysconf(_SC_PAGESIZE),
|
||||||
|
"N_CPUS=%li", sysconf(_SC_NPROCESSORS_ONLN),
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
sleep(10);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user