X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsd_journal_stream_fd.xml;h=ec42e8cb1b3df38e20c841e87a1eb2c47cf7ef06;hb=b42defe3b8ed3947d85db654a6cdb1b9999f394d;hp=917ab4fe816bfef96991dd68b45346132036ea2a;hpb=67c3cf4f9ea35c1f789526b24a4d052d071902c0;p=elogind.git
diff --git a/man/sd_journal_stream_fd.xml b/man/sd_journal_stream_fd.xml
index 917ab4fe8..ec42e8cb1 100644
--- a/man/sd_journal_stream_fd.xml
+++ b/man/sd_journal_stream_fd.xml
@@ -79,24 +79,24 @@
systemd.journal-fields7
for more information). The second argument shall be
the default priority level for all messages. The
- priority level is one of LOG_EMERG,
- LOG_ALERT,
- LOG_CRIT,
- LOG_ERR,
- LOG_WARNING,
- LOG_NOTICE,
- LOG_INFO,
- LOG_DEBUG, as defined in
+ priority level is one of LOG_EMERG,
+ LOG_ALERT,
+ LOG_CRIT,
+ LOG_ERR,
+ LOG_WARNING,
+ LOG_NOTICE,
+ LOG_INFO,
+ LOG_DEBUG, as defined in
syslog.h, see
syslog3
for details. The third argument is a boolean: if true
kernel-style log priority level prefixes (such as
- SD_WARNING) are interpreted, see
+ SD_WARNING) are interpreted, see
sd-daemon3
for more information.
It is recommended that applications log UTF-8
- mesages only with this API, but this is not
+ messages only with this API, but this is not
enforced.
@@ -114,7 +114,7 @@
The sd_journal_stream_fd()
interface is available as shared library, which can
be compiled and linked to with the
- libsystemd-journal
+ libsystemd-journal
pkg-config1
file.
@@ -149,6 +149,7 @@ int main(int argc, char *argv[]) {
fprintf(log, "Hello World!\n");
fprintf(log, SD_WARNING "This is a warning!\n");
fclose(log);
+ return 0;
}