Updates and Problems on "Raspberry Pi USB and Ethernet Support" Project

Deval Shah deval.maker at gmail.com
Tue Jul 12 09:13:04 UTC 2016


On Tue, Jul 12, 2016 at 11:07 AM, Chris Johns <chrisj at rtems.org> wrote:

> On 12/07/2016 14:41, Deval Shah wrote:
>
>> The problem with the RaspberryPi_USB was that due to some other updates
>> in mainline, I was not getting the device_printfs. So I switched back to
>> the old repo of mine.
>>
>
> It would help if you could please debug this. It is easy to do. Just add a
> printf in the syslog function and see if it is bring called. If it is being
> called please check the values and logic for the priority, again some
> simple prints should show this.
>
> I added the print statements in the file
rtems-libbsd/rtemsbsd/rtems/syslog.c in the "void syslog" function. It is
not being called. Also I checked the same, with the repo which gives me the
printfs, it turns out that "void syslog" is not being called there too. My
syslog function after changes.

void
syslog(int priority, const char *format, ...)
{
printf("In syslog function \n");
if (priority <= syslog_priority) {
va_list ap;

va_start(ap, format);
vsyslog(priority, format, ap);
va_end(ap);
printf("Value of priority in syslog: %d\n",priority);
}
}


Thanks
Deval


> Thanks
> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20160712/77ae4cdc/attachment-0002.html>


More information about the devel mailing list