From: "Ólafur Jens Sigurðsson" <ojsbug@gmail.com>
To: gregkh@suse.de, andrew@lunn.ch, lindner_marek@yahoo.de,
siwu@hrz.tu-chemnitz.de, sdietrich@novell.com
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
"Ólafur Jens Śigurðsson" <ojsbug@gmail.com>
Subject: [PATCH] =?UTF-8?q?Staging:=20batman-adv:=20Fix=20coding=20style=20in=20device.c
Date: Wed, 10 Mar 2010 22:09:35 +0000 [thread overview]
Message-ID: <1268258975-4161-1-git-send-email-ojsbug@gmail.com> (raw)
From: Ólafur Jens Śigurðsson <ojsbug@gmail.com>
---
drivers/staging/batman-adv/device.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/batman-adv/device.c b/drivers/staging/batman-adv/device.c
index e7f4421..6edc2f2 100644
--- a/drivers/staging/batman-adv/device.c
+++ b/drivers/staging/batman-adv/device.c
@@ -67,7 +67,7 @@ int bat_device_setup(void)
batman_class = class_create(THIS_MODULE, "batman-adv");
if (IS_ERR(batman_class)) {
- printk(KERN_ERR "batman-adv:Could not register class 'batman-adv' \n");
+ printk(KERN_ERR "batman-adv:Could not register class 'batman-adv'\n");
return 0;
}
@@ -110,7 +110,7 @@ int bat_device_open(struct inode *inode, struct file *file)
}
if (device_client_hash[i] != device_client) {
- printk(KERN_ERR "batman-adv:Error - can't add another packet client: maximum number of clients reached \n");
+ printk(KERN_ERR "batman-adv:Error - can't add another packet client: maximum number of clients reached\n");
kfree(device_client);
return -EXFULL;
}
@@ -211,7 +211,8 @@ ssize_t bat_device_write(struct file *file, const char __user *buff,
unsigned long flags;
if (len < sizeof(struct icmp_packet)) {
- bat_dbg(DBG_BATMAN, "batman-adv:Error - can't send packet from char device: invalid packet size\n");
+ bat_dbg(DBG_BATMAN, "batman-adv:Error - can't send packet from "
+ "char device: invalid packet size\n");
return -EINVAL;
}
@@ -222,12 +223,16 @@ ssize_t bat_device_write(struct file *file, const char __user *buff,
return -EFAULT;
if (icmp_packet.packet_type != BAT_ICMP) {
- bat_dbg(DBG_BATMAN, "batman-adv:Error - can't send packet from char device: got bogus packet type (expected: BAT_ICMP)\n");
+ bat_dbg(DBG_BATMAN, "batman-adv:Error - can't send packet from "
+ "char device: got bogus packet type "
+ "(expected: BAT_ICMP)\n");
return -EINVAL;
}
if (icmp_packet.msg_type != ECHO_REQUEST) {
- bat_dbg(DBG_BATMAN, "batman-adv:Error - can't send packet from char device: got bogus message type (expected: ECHO_REQUEST)\n");
+ bat_dbg(DBG_BATMAN, "batman-adv:Error - can't send packet from "
+ "char device: got bogus message type "
+ "(expected: ECHO_REQUEST)\n");
return -EINVAL;
}
--
1.6.6.2
next reply other threads:[~2010-03-10 22:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-10 22:09 Ólafur Jens Sigurðsson [this message]
2010-04-27 20:34 ` [PATCH] =?UTF-8?q?Staging:=20batman-adv:=20Fix=20coding=20style=20in=20device.c Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1268258975-4161-1-git-send-email-ojsbug@gmail.com \
--to=ojsbug@gmail.com \
--cc=andrew@lunn.ch \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@suse.de \
--cc=lindner_marek@yahoo.de \
--cc=linux-kernel@vger.kernel.org \
--cc=sdietrich@novell.com \
--cc=siwu@hrz.tu-chemnitz.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.