lkml.org 
[lkml]   [2008]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] LIRC: Add missing line breaks
Date
From: Stefan Bauer <stefan.bauer@cs.tu-chemnitz.de>

Add missing line breaks to lirc_buffer_{clear, free}() warnings.

Signed-Off-By: Stefan Bauer <stefan.bauer@cs.tu-chemnitz.de>

---
Jarod, this is for your linux-2.6-lirc.git tree and fixes output like this:
calling lirc_buffer_clear on an uninitialized lirc_bufferModules linked in

diff --git a/drivers/input/lirc/lirc_dev.h b/drivers/input/lirc/lirc_dev.h
index 1342035..bf05a7c 100644
--- a/drivers/input/lirc/lirc_dev.h
+++ b/drivers/input/lirc/lirc_dev.h
@@ -34,7 +34,7 @@ static void lirc_buffer_clear(struct lirc_buffer *buf)
if (buf->fifo)
kfifo_reset(buf->fifo);
else
- WARN(1, "calling lirc_buffer_clear on an uninitialized lirc_buffer");
+ WARN(1, "calling lirc_buffer_clear on an uninitialized lirc_buffer\n");
}
static int lirc_buffer_init(struct lirc_buffer *buf,
unsigned int chunk_size,
@@ -54,7 +54,7 @@ static void lirc_buffer_free(struct lirc_buffer *buf)
if (buf->fifo)
kfifo_free(buf->fifo);
else
- WARN(1, "calling lirc_buffer_free on an uninitialized lirc_buffer");
+ WARN(1, "calling lirc_buffer_free on an uninitialized lirc_buffer\n");
}
static int lirc_buffer_full(struct lirc_buffer *buf)
{


\
 
 \ /
  Last update: 2008-09-26 21:29    [W:0.028 / U:3.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site