chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core,systemctl: add bus API to retrieve processes of a unit
[elogind.git]
/
src
/
basic
/
syslog-util.c
diff --git
a/src/basic/syslog-util.c
b/src/basic/syslog-util.c
index 854401aa21ab1be74c87b4c65725042c7cb25695..05d51b4be53ad09f1a5c7911e961a6a73948d8e2 100644
(file)
--- a/
src/basic/syslog-util.c
+++ b/
src/basic/syslog-util.c
@@
-1,5
+1,3
@@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
/***
This file is part of systemd.
/***
This file is part of systemd.
@@
-19,15
+17,15
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <string.h>
#include <syslog.h>
#include <syslog.h>
-#include "assert.h"
#include "hexdecoct.h"
#include "hexdecoct.h"
+#include "macro.h"
#include "string-table.h"
#include "syslog-util.h"
#include "string-table.h"
#include "syslog-util.h"
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
int syslog_parse_priority(const char **p, int *priority, bool with_facility) {
int a = 0, b = 0, c = 0;
int k;
int syslog_parse_priority(const char **p, int *priority, bool with_facility) {
int a = 0, b = 0, c = 0;
int k;
@@
-96,8
+94,7
@@
static const char *const log_facility_unshifted_table[LOG_NFACILITIES] = {
DEFINE_STRING_TABLE_LOOKUP_WITH_FALLBACK(log_facility_unshifted, int, LOG_FAC(~0));
DEFINE_STRING_TABLE_LOOKUP_WITH_FALLBACK(log_facility_unshifted, int, LOG_FAC(~0));
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
bool log_facility_unshifted_is_valid(int facility) {
return facility >= 0 && facility <= LOG_FAC(~0);
}
bool log_facility_unshifted_is_valid(int facility) {
return facility >= 0 && facility <= LOG_FAC(~0);
}
@@
-116,8
+113,7
@@
static const char *const log_level_table[] = {
DEFINE_STRING_TABLE_LOOKUP_WITH_FALLBACK(log_level, int, LOG_DEBUG);
DEFINE_STRING_TABLE_LOOKUP_WITH_FALLBACK(log_level, int, LOG_DEBUG);
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
bool log_level_is_valid(int level) {
return level >= 0 && level <= LOG_DEBUG;
}
bool log_level_is_valid(int level) {
return level >= 0 && level <= LOG_DEBUG;
}