summaryrefslogtreecommitdiff
path: root/src/libudev/libudev-util.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-09-10 21:22:46 -0400
committerAnthony G. Basile <blueness@gentoo.org>2014-09-10 21:22:46 -0400
commit89f2848567ec16e019db4309cef0ebcd9a6c5196 (patch)
treec594d9a9f06a987391ccb95e85b52737dbcb6ad9 /src/libudev/libudev-util.c
parent876565e4f64224574e7be2644dc3600aaa1b9b55 (diff)
udev - drop print_kmsg
The only remaining user was 'starting version XXX', which is now logged using log_info(). Basile: There were also print_kmsg in udev-event.c which I switched to log_info(). Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev/libudev-util.c')
-rw-r--r--src/libudev/libudev-util.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/libudev/libudev-util.c b/src/libudev/libudev-util.c
index 531c76c6a3..61eeb4e4d7 100644
--- a/src/libudev/libudev-util.c
+++ b/src/libudev/libudev-util.c
@@ -423,28 +423,3 @@ uint64_t util_string_bloom64(const char *str)
bits |= 1LLU << ((hash >> 18) & 63);
return bits;
}
-
-ssize_t print_kmsg(const char *fmt, ...)
-{
- _cleanup_close_ int fd = -1;
- va_list ap;
- char text[1024];
- ssize_t len;
- ssize_t ret;
-
- fd = open("/dev/kmsg", O_WRONLY|O_NOCTTY|O_CLOEXEC);
- if (fd < 0)
- return -errno;
-
- len = snprintf(text, sizeof(text), "<30>udevd[%u]: ", getpid());
-
- va_start(ap, fmt);
- len += vsnprintf(text + len, sizeof(text) - len, fmt, ap);
- va_end(ap);
-
- ret = write(fd, text, len);
- if (ret < 0)
- return -errno;
-
- return ret;
-}