Re: readb macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 6/13/07, Bhanu Kalyan Chetlapalli <chbhanukalyan@xxxxxxxxx> wrote:
On 6/13/07, Devvrat Tripathi <tripathidevvrat@xxxxxxxxx > wrote:
it just stops working. something is printed and after that nothing happens. I dont get an error message

I would suggest you use a mechanism, where you enable printk *only* when you need it like below.

static __always_inline __u32 __readl(const volatile void __iomem *addr)
{
     if (some_global_variable)
            printk("r bytes 4 addr %p \n",addr);
     return *(__force volatile __u32 *)addr;
}


Set the variable through some proc interface or so.

thats what i am thinking to do but i am not sure how to know that it is the console initialisation which is the problem or is it something else.

Also you can then check to see if the printk is failing only at bootup time or everytime. If it still fails whenever you enable it, then you gotta look somewhere else.....

 
can you suggest a method to do that.  i dont know how to find out the exact problem


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux