* [KJ] [PATCH] add KERN_* constants to printk()'s in pty.c and vt.c
@ 2006-09-19 14:26 steve
2006-09-19 16:35 ` [KJ] [PATCH] add KERN_* constants to printk()'s in pty.c and Reiner Herrmann
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: steve @ 2006-09-19 14:26 UTC (permalink / raw)
To: kernel-janitors
Hi all,
This is my first patch. This is more of a 'get-submission-right' type of patch.
So please do comment on the patch submission style even if this patch has already
been submitted (although a hurried search through the list archives does not seem
to suggest this).
- steve
---
Signed-off-by: Steven Fernandez <steve@lonetwin.net>
---
diff --git a/drivers/char/pty.c b/drivers/char/pty.c
index 34dd4c3..4f22bca 100644
--- a/drivers/char/pty.c
+++ b/drivers/char/pty.c
@@ -42,7 +42,7 @@ static void pty_close(struct tty_struct
return;
if (tty->driver->subtype = PTY_TYPE_MASTER) {
if (tty->count > 1)
- printk("master pty_close: count = %d!!\n", tty->count);
+ printk(KERN_WARNING "master pty_close: count = %d!!\n",
tty->count);
} else {
if (tty->count > 2)
return;
diff --git a/drivers/char/toshiba.c b/drivers/char/toshiba.c
index dd36fd0..34394da 100644
--- a/drivers/char/toshiba.c
+++ b/drivers/char/toshiba.c
@@ -382,7 +382,7 @@ static int tosh_get_machine_id(void __io
value. This has been verified on a Satellite Pro 430CDT,
Tecra 750CDT, Tecra 780DVD and Satellite 310CDT. */
#if TOSH_DEBUG
- printk("toshiba: debugging ID ebx=0x%04x\n", regs.ebx);
+ printk(KERN_DEBUG "toshiba: debugging ID ebx=0x%04x\n", regs.ebx);
#endif
bx = 0xe6f5;
@@ -426,7 +426,7 @@ static int tosh_probe(void)
for (i=0;i<7;i++) {
if (readb(bios+0xe010+i)!=signature[i]) {
- printk("toshiba: not a supported Toshiba laptop\n");
+ printk(KERN_ERR "toshiba: not a supported Toshiba laptop\n");
iounmap(bios);
return -ENODEV;
}
@@ -442,7 +442,7 @@ static int tosh_probe(void)
/* if this is not a Toshiba laptop carry flag is set and ah=0x86 */
if ((flag=1) || ((regs.eax & 0xff00)=0x8600)) {
- printk("toshiba: not a supported Toshiba laptop\n");
+ printk(KERN_ERR "toshiba: not a supported Toshiba laptop\n");
iounmap(bios);
return -ENODEV;
}
diff --git a/drivers/char/vt.c b/drivers/char/vt.c
index da7e66a..0938e05 100644
--- a/drivers/char/vt.c
+++ b/drivers/char/vt.c
@@ -1962,7 +1962,7 @@ #endif
static int error = 0;
if (!error) {
error = 1;
- printk("con_write: tty %d not allocated\n", currcons+1);
+ printk(KERN_ERR "con_write: tty %d not allocated\n", currcons+1);
}
release_console_sem();
return 0;
@@ -2624,7 +2624,7 @@ static int __init con_init(void)
gotoxy(vc, vc->vc_x, vc->vc_y);
csi_J(vc, 0);
update_screen(vc);
- printk("Console: %s %s %dx%d",
+ printk(KERN_NOTICE "Console: %s %s %dx%d",
vc->vc_can_do_color ? "colour" : "mono",
display_desc, vc->vc_cols, vc->vc_rows);
printable = 1;
@@ -2766,9 +2766,9 @@ static int bind_con_driver(const struct
clear_buffer_attributes(vc);
}
- printk("Console: switching ");
+ printk(KERN_DEBUG "Console: switching ");
if (!deflt)
- printk("consoles %d-%d ", first+1, last+1);
+ printk(KERN_DEBUG "consoles %d-%d ", first+1, last+1);
if (j >= 0) {
struct vc_data *vc = vc_cons[j].d;
@@ -3354,7 +3354,7 @@ void do_unblank_screen(int leaving_gfx)
return;
if (!vc_cons_allocated(fg_console)) {
/* impossible */
- printk("unblank_screen: tty %d not allocated ??\n", fg_console+1);
+ printk(KERN_ERR "unblank_screen: tty %d not allocated ??\n",
fg_console+1);
return;
}
vc = vc_cons[fg_console].d;
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [KJ] [PATCH] add KERN_* constants to printk()'s in pty.c and
2006-09-19 14:26 [KJ] [PATCH] add KERN_* constants to printk()'s in pty.c and vt.c steve
@ 2006-09-19 16:35 ` Reiner Herrmann
2006-09-19 21:31 ` Jesper Juhl
2006-09-20 13:02 ` [KJ] [PATCH] add KERN_* constants to printk()'s in Steven Fernandez
2 siblings, 0 replies; 4+ messages in thread
From: Reiner Herrmann @ 2006-09-19 16:35 UTC (permalink / raw)
To: kernel-janitors
Hi Steve,
you should configure your mail client that it doesn't
add linebreaks if a line is longer than X characters.
The rest seems to be ok.
Reiner
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [KJ] [PATCH] add KERN_* constants to printk()'s in pty.c and
2006-09-19 14:26 [KJ] [PATCH] add KERN_* constants to printk()'s in pty.c and vt.c steve
2006-09-19 16:35 ` [KJ] [PATCH] add KERN_* constants to printk()'s in pty.c and Reiner Herrmann
@ 2006-09-19 21:31 ` Jesper Juhl
2006-09-20 13:02 ` [KJ] [PATCH] add KERN_* constants to printk()'s in Steven Fernandez
2 siblings, 0 replies; 4+ messages in thread
From: Jesper Juhl @ 2006-09-19 21:31 UTC (permalink / raw)
To: kernel-janitors
On 19/09/06, steve@lonetwin.net <steve@lonetwin.net> wrote:
> Hi all,
>
> This is my first patch. This is more of a 'get-submission-right' type of patch.
> So please do comment on the patch submission style even if this patch has already
> been submitted (although a hurried search through the list archives does not seem
> to suggest this).
>
> - steve
>
You should generally always have a small (or long) note saying what
the patch does as well as why it makes the change. It goes in the
commit message for later reference.
You should usually also specify what sort of testing the patch has
seen. Like, "compile tested only", "compiled on arch x, y, z and boot
tested on x & y" or "compile and boot tested on i386 and further
tested by doing <whatever>" - you get the picture...
> ---
>
> Signed-off-by: Steven Fernandez <steve@lonetwin.net>
>
> ---
>
a "diffstat -p1 -w70" at this point is usually appreciated.
This is a good read: http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt
Documentation/SubmittingPatches is also a good read.
--
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [KJ] [PATCH] add KERN_* constants to printk()'s in
2006-09-19 14:26 [KJ] [PATCH] add KERN_* constants to printk()'s in pty.c and vt.c steve
2006-09-19 16:35 ` [KJ] [PATCH] add KERN_* constants to printk()'s in pty.c and Reiner Herrmann
2006-09-19 21:31 ` Jesper Juhl
@ 2006-09-20 13:02 ` Steven Fernandez
2 siblings, 0 replies; 4+ messages in thread
From: Steven Fernandez @ 2006-09-20 13:02 UTC (permalink / raw)
To: kernel-janitors
Hello,
Reiner Herrmann wrote:
> > Hi Steve,
> >
> > you should configure your mail client that it doesn't
> > add linebreaks if a line is longer than X characters.
> > The rest seems to be ok.
Thanks Reiner and Jesper. I'm resending the patch. Hope it is ok this time
- steve
---
Signed-off-by: Steven Fernandez <steve@lonetwin.net>
---
diffstat -p1 -w70 ~/diff
drivers/char/pty.c | 2 +-
drivers/char/toshiba.c | 6 +++---
drivers/char/vt.c | 10 +++++-----
fs/devpts/inode.c | 2 +-
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/char/pty.c b/drivers/char/pty.c
index 34dd4c3..4f22bca 100644
--- a/drivers/char/pty.c
+++ b/drivers/char/pty.c
@@ -42,7 +42,7 @@ static void pty_close(struct tty_struct
return;
if (tty->driver->subtype = PTY_TYPE_MASTER) {
if (tty->count > 1)
- printk("master pty_close: count = %d!!\n", tty->count);
+ printk(KERN_WARNING "master pty_close: count = %d!!\n", tty->count);
} else {
if (tty->count > 2)
return;
diff --git a/drivers/char/toshiba.c b/drivers/char/toshiba.c
index dd36fd0..34394da 100644
--- a/drivers/char/toshiba.c
+++ b/drivers/char/toshiba.c
@@ -382,7 +382,7 @@ static int tosh_get_machine_id(void __io
value. This has been verified on a Satellite Pro 430CDT,
Tecra 750CDT, Tecra 780DVD and Satellite 310CDT. */
#if TOSH_DEBUG
- printk("toshiba: debugging ID ebx=0x%04x\n", regs.ebx);
+ printk(KERN_DEBUG "toshiba: debugging ID ebx=0x%04x\n", regs.ebx);
#endif
bx = 0xe6f5;
@@ -426,7 +426,7 @@ static int tosh_probe(void)
for (i=0;i<7;i++) {
if (readb(bios+0xe010+i)!=signature[i]) {
- printk("toshiba: not a supported Toshiba laptop\n");
+ printk(KERN_ERR "toshiba: not a supported Toshiba laptop\n");
iounmap(bios);
return -ENODEV;
}
@@ -442,7 +442,7 @@ static int tosh_probe(void)
/* if this is not a Toshiba laptop carry flag is set and ah=0x86 */
if ((flag=1) || ((regs.eax & 0xff00)=0x8600)) {
- printk("toshiba: not a supported Toshiba laptop\n");
+ printk(KERN_ERR "toshiba: not a supported Toshiba laptop\n");
iounmap(bios);
return -ENODEV;
}
diff --git a/drivers/char/vt.c b/drivers/char/vt.c
index da7e66a..0938e05 100644
--- a/drivers/char/vt.c
+++ b/drivers/char/vt.c
@@ -1962,7 +1962,7 @@ #endif
static int error = 0;
if (!error) {
error = 1;
- printk("con_write: tty %d not allocated\n", currcons+1);
+ printk(KERN_ERR "con_write: tty %d not allocated\n", currcons+1);
}
release_console_sem();
return 0;
@@ -2624,7 +2624,7 @@ static int __init con_init(void)
gotoxy(vc, vc->vc_x, vc->vc_y);
csi_J(vc, 0);
update_screen(vc);
- printk("Console: %s %s %dx%d",
+ printk(KERN_NOTICE "Console: %s %s %dx%d",
vc->vc_can_do_color ? "colour" : "mono",
display_desc, vc->vc_cols, vc->vc_rows);
printable = 1;
@@ -2766,9 +2766,9 @@ static int bind_con_driver(const struct
clear_buffer_attributes(vc);
}
- printk("Console: switching ");
+ printk(KERN_DEBUG "Console: switching ");
if (!deflt)
- printk("consoles %d-%d ", first+1, last+1);
+ printk(KERN_DEBUG "consoles %d-%d ", first+1, last+1);
if (j >= 0) {
struct vc_data *vc = vc_cons[j].d;
@@ -3354,7 +3354,7 @@ void do_unblank_screen(int leaving_gfx)
return;
if (!vc_cons_allocated(fg_console)) {
/* impossible */
- printk("unblank_screen: tty %d not allocated ??\n", fg_console+1);
+ printk(KERN_ERR "unblank_screen: tty %d not allocated ??\n", fg_console+1);
return;
}
vc = vc_cons[fg_console].d;
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c
index f7aef5b..3f6c806 100644
--- a/fs/devpts/inode.c
+++ b/fs/devpts/inode.c
@@ -124,7 +124,7 @@ devpts_fill_super(struct super_block *s,
if (s->s_root)
return 0;
- printk("devpts: get root dentry failed\n");
+ printk(KERN_ERR "devpts: get root dentry failed\n");
iput(inode);
fail:
return -ENOMEM;
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-09-20 13:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-19 14:26 [KJ] [PATCH] add KERN_* constants to printk()'s in pty.c and vt.c steve
2006-09-19 16:35 ` [KJ] [PATCH] add KERN_* constants to printk()'s in pty.c and Reiner Herrmann
2006-09-19 21:31 ` Jesper Juhl
2006-09-20 13:02 ` [KJ] [PATCH] add KERN_* constants to printk()'s in Steven Fernandez
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.