On Tue, Jul 12, 2016 at 11:07 AM, Chris Johns <chr...@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 >
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel