* [PATCH 0/2] dyndbg: trivial fixes
@ 2012-08-17 2:37 Jim Cromie
2012-08-17 2:37 ` [PATCH 1/2] dyndbg: spelling fix in comment Jim Cromie
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jim Cromie @ 2012-08-17 2:37 UTC (permalink / raw)
To: jbaron, linux-kernel; +Cc: gregkh, Jim Cromie
2 trivial patches here, suitable for 3.6:
- fix spelling error in comment s/control/control
- add write size attempted to log warning issued for E2BIG error
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] dyndbg: spelling fix in comment
2012-08-17 2:37 [PATCH 0/2] dyndbg: trivial fixes Jim Cromie
@ 2012-08-17 2:37 ` Jim Cromie
2012-08-17 2:37 ` [PATCH 2/2] dyndbg: add more info to -E2BIG log warning Jim Cromie
2012-08-17 3:09 ` [PATCH 0/2] dyndbg: trivial fixes Greg KH
2 siblings, 0 replies; 4+ messages in thread
From: Jim Cromie @ 2012-08-17 2:37 UTC (permalink / raw)
To: jbaron, linux-kernel; +Cc: gregkh, Jim Cromie
Fix a comment referring to <debugfs>/dynamic_debug/conrol.
It should be control.
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
---
lib/dynamic_debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index 7ca29a0..86d4065 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -630,7 +630,7 @@ static __init int ddebug_setup_query(char *str)
__setup("ddebug_query=", ddebug_setup_query);
/*
- * File_ops->write method for <debugfs>/dynamic_debug/conrol. Gathers the
+ * File_ops->write method for <debugfs>/dynamic_debug/control. Gathers the
* command text from userspace, parses and executes it.
*/
#define USER_BUF_PAGE 4096
--
1.7.10.1.487.ga3935e6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] dyndbg: add more info to -E2BIG log warning
2012-08-17 2:37 [PATCH 0/2] dyndbg: trivial fixes Jim Cromie
2012-08-17 2:37 ` [PATCH 1/2] dyndbg: spelling fix in comment Jim Cromie
@ 2012-08-17 2:37 ` Jim Cromie
2012-08-17 3:09 ` [PATCH 0/2] dyndbg: trivial fixes Greg KH
2 siblings, 0 replies; 4+ messages in thread
From: Jim Cromie @ 2012-08-17 2:37 UTC (permalink / raw)
To: jbaron, linux-kernel; +Cc: gregkh, Jim Cromie
ddebug_proc_write() warns if the written buffer is >4096 bytes.
Might as well tell user how much was attempted, in case its not obvious.
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
---
lib/dynamic_debug.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index 86d4065..0983f60 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -643,7 +643,8 @@ static ssize_t ddebug_proc_write(struct file *file, const char __user *ubuf,
if (len == 0)
return 0;
if (len > USER_BUF_PAGE - 1) {
- pr_warn("expected <%d bytes into control\n", USER_BUF_PAGE);
+ pr_warn("expected <%d bytes into control, you wrote %d\n",
+ USER_BUF_PAGE, len);
return -E2BIG;
}
tmpbuf = kmalloc(len + 1, GFP_KERNEL);
--
1.7.10.1.487.ga3935e6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] dyndbg: trivial fixes
2012-08-17 2:37 [PATCH 0/2] dyndbg: trivial fixes Jim Cromie
2012-08-17 2:37 ` [PATCH 1/2] dyndbg: spelling fix in comment Jim Cromie
2012-08-17 2:37 ` [PATCH 2/2] dyndbg: add more info to -E2BIG log warning Jim Cromie
@ 2012-08-17 3:09 ` Greg KH
2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2012-08-17 3:09 UTC (permalink / raw)
To: Jim Cromie; +Cc: jbaron, linux-kernel
On Thu, Aug 16, 2012 at 08:37:21PM -0600, Jim Cromie wrote:
> 2 trivial patches here, suitable for 3.6:
> - fix spelling error in comment s/control/control
That's not for 3.6, that's 3.7, at the earliest.
> - add write size attempted to log warning issued for E2BIG error
Same here.
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-08-17 3:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-17 2:37 [PATCH 0/2] dyndbg: trivial fixes Jim Cromie
2012-08-17 2:37 ` [PATCH 1/2] dyndbg: spelling fix in comment Jim Cromie
2012-08-17 2:37 ` [PATCH 2/2] dyndbg: add more info to -E2BIG log warning Jim Cromie
2012-08-17 3:09 ` [PATCH 0/2] dyndbg: trivial fixes Greg KH
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.