summaryrefslogtreecommitdiff
path: root/logging.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2003-11-24 22:27:17 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:03 -0700
commitf7b4eca455c7dbf850d984892756f22dbd9ddc3d (patch)
tree55488d985521e5b05f47ff4847b52e0fcbae3fa5 /logging.c
parent74894b53f8f9f4de6f269a5c0c0f8ea03baa1587 (diff)
[PATCH] overall whitespace + debug text conditioning
01-overall-whitespace+debug-text-conditioning.diff o cleanup whitespace o clarify a few comments o enclose all printed debug string values in ''
Diffstat (limited to 'logging.c')
-rw-r--r--logging.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/logging.c b/logging.c
index 1ca3aed1a9..4815f39fdc 100644
--- a/logging.c
+++ b/logging.c
@@ -32,26 +32,26 @@
static int logging_init = 0;
static unsigned char udev_logname[42];
-static void init_logging (void)
+static void init_logging(void)
{
- snprintf(udev_logname,42,"udev[%d]", getpid());
+ snprintf(udev_logname, 42,"udev[%d]", getpid());
- openlog (udev_logname, 0, LOG_DAEMON);
+ openlog(udev_logname, 0, LOG_DAEMON);
logging_init = 1;
}
/**
* log_message - sends a message to the logging facility
*/
-int log_message (int level, const char *format, ...)
+int log_message(int level, const char *format, ...)
{
va_list args;
if (!logging_init)
init_logging();
- va_start (args, format);
- vsyslog (level, format, args);
- va_end (args);
+ va_start(args, format);
+ vsyslog(level, format, args);
+ va_end(args);
return 1;
}