All of lore.kernel.org
 help / color / mirror / Atom feed
* A question on printascii
@ 2012-07-18 13:03 Shashidhar Hiremath
  2012-07-18 16:03 ` Randy Dunlap
  2012-07-20  3:54 ` Chris Ball
  0 siblings, 2 replies; 5+ messages in thread
From: Shashidhar Hiremath @ 2012-07-18 13:03 UTC (permalink / raw)
  To: lkml

HI,
  I want to use printascii to debug my serial driver. How do I enable
it and use the feature.
  Currently I have enabled in menuconfig and done an extern on the
printascii api, this doesn't seem to work, So any hints for debugging
serial drivers ?

-- 
regards,
Shashidhar Hiremath

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: A question on printascii
  2012-07-18 13:03 A question on printascii Shashidhar Hiremath
@ 2012-07-18 16:03 ` Randy Dunlap
  2012-07-20  3:34   ` Shashidhar Hiremath
  2012-07-20  3:54 ` Chris Ball
  1 sibling, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2012-07-18 16:03 UTC (permalink / raw)
  To: Shashidhar Hiremath; +Cc: lkml

On 07/18/2012 06:03 AM, Shashidhar Hiremath wrote:

> HI,
>   I want to use printascii to debug my serial driver. How do I enable
> it and use the feature.
>   Currently I have enabled in menuconfig and done an extern on the
> printascii api, this doesn't seem to work, So any hints for debugging
> serial drivers ?
> 


Enabled what/where in menuconfig?

It looks like only a few CPU architecures or platforms
implement "printascii".  What architecture/platform are you trying
to use it on?

-- 
~Randy

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: A question on printascii
  2012-07-18 16:03 ` Randy Dunlap
@ 2012-07-20  3:34   ` Shashidhar Hiremath
  0 siblings, 0 replies; 5+ messages in thread
From: Shashidhar Hiremath @ 2012-07-20  3:34 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: lkml

I am working on ARM architecture.

On Wed, Jul 18, 2012 at 9:33 PM, Randy Dunlap <rdunlap@xenotime.net> wrote:
> On 07/18/2012 06:03 AM, Shashidhar Hiremath wrote:
>
>> HI,
>>   I want to use printascii to debug my serial driver. How do I enable
>> it and use the feature.
>>   Currently I have enabled in menuconfig and done an extern on the
>> printascii api, this doesn't seem to work, So any hints for debugging
>> serial drivers ?
>>
>
>
> Enabled what/where in menuconfig?
>
> It looks like only a few CPU architecures or platforms
> implement "printascii".  What architecture/platform are you trying
> to use it on?
>
> --
> ~Randy



-- 
regards,
Shashidhar Hiremath

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: A question on printascii
  2012-07-18 13:03 A question on printascii Shashidhar Hiremath
  2012-07-18 16:03 ` Randy Dunlap
@ 2012-07-20  3:54 ` Chris Ball
  2012-07-20  8:20   ` Shashidhar Hiremath
  1 sibling, 1 reply; 5+ messages in thread
From: Chris Ball @ 2012-07-20  3:54 UTC (permalink / raw)
  To: Shashidhar Hiremath; +Cc: lkml

Hi Shashidhar,

On Wed, Jul 18 2012, Shashidhar Hiremath wrote:
>   I want to use printascii to debug my serial driver. How do I enable
> it and use the feature.
>   Currently I have enabled in menuconfig and done an extern on the
> printascii api, this doesn't seem to work, So any hints for debugging
> serial drivers ?

Sounds like you want this patch, against linux-next:

diff --git a/kernel/printk.c b/kernel/printk.c
index 3991862..36abce8 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -45,6 +45,8 @@
 
 #include <asm/uaccess.h>
 
+extern void printascii(char *);
+
 #define CREATE_TRACE_POINTS
 #include <trace/events/printk.h>
 
@@ -1542,6 +1544,8 @@ asmlinkage int vprintk_emit(int facility, int level,
 	 */
 	text_len = vscnprintf(text, sizeof(textbuf), fmt, args);
 
+	printascii(text);
+
 	/* mark and strip a trailing newline */
 	if (text_len && text[text_len-1] == '\n') {
 		text_len--;

-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: A question on printascii
  2012-07-20  3:54 ` Chris Ball
@ 2012-07-20  8:20   ` Shashidhar Hiremath
  0 siblings, 0 replies; 5+ messages in thread
From: Shashidhar Hiremath @ 2012-07-20  8:20 UTC (permalink / raw)
  To: Chris Ball; +Cc: lkml

thanks a lot Chris. Will try it out.

On Fri, Jul 20, 2012 at 9:24 AM, Chris Ball <cjb@laptop.org> wrote:
> Hi Shashidhar,
>
> On Wed, Jul 18 2012, Shashidhar Hiremath wrote:
>>   I want to use printascii to debug my serial driver. How do I enable
>> it and use the feature.
>>   Currently I have enabled in menuconfig and done an extern on the
>> printascii api, this doesn't seem to work, So any hints for debugging
>> serial drivers ?
>
> Sounds like you want this patch, against linux-next:
>
> diff --git a/kernel/printk.c b/kernel/printk.c
> index 3991862..36abce8 100644
> --- a/kernel/printk.c
> +++ b/kernel/printk.c
> @@ -45,6 +45,8 @@
>
>  #include <asm/uaccess.h>
>
> +extern void printascii(char *);
> +
>  #define CREATE_TRACE_POINTS
>  #include <trace/events/printk.h>
>
> @@ -1542,6 +1544,8 @@ asmlinkage int vprintk_emit(int facility, int level,
>          */
>         text_len = vscnprintf(text, sizeof(textbuf), fmt, args);
>
> +       printascii(text);
> +
>         /* mark and strip a trailing newline */
>         if (text_len && text[text_len-1] == '\n') {
>                 text_len--;
>
> --
> Chris Ball   <cjb@laptop.org>   <http://printf.net/>
> One Laptop Per Child



-- 
regards,
Shashidhar Hiremath

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-07-20  8:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-18 13:03 A question on printascii Shashidhar Hiremath
2012-07-18 16:03 ` Randy Dunlap
2012-07-20  3:34   ` Shashidhar Hiremath
2012-07-20  3:54 ` Chris Ball
2012-07-20  8:20   ` Shashidhar Hiremath

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.