Index: uspace/lib/c/include/io/klog.h
===================================================================
--- uspace/lib/c/include/io/klog.h	(revision 68e540652e175b4bfb5504f9363d31c97d4c5a17)
+++ uspace/lib/c/include/io/klog.h	(revision 23d45152e0fb1fe800c3d2feff9821e9e25265da)
@@ -48,11 +48,6 @@
 
 #define KLOG_PRINTF(lvl, fmt, ...) ({ \
-	char *_fmt = str_dup(fmt); \
-	size_t _fmtsize = str_size(_fmt); \
-	if (_fmtsize > 0 && _fmt[_fmtsize - 1] == '\n') \
-		_fmt[_fmtsize - 1] = 0; \
 	char *_s; \
-	int _c = asprintf(&_s, _fmt, ##__VA_ARGS__); \
-	free(_fmt); \
+	int _c = asprintf(&_s, fmt, ##__VA_ARGS__); \
 	if (_c >= 0) { \
 		_c = klog_write((lvl), _s, str_size(_s)); \
