Thanks! Dave and Mike. I changed to printf_stderr and its now showing the log stmts in adb logcat.
On Tuesday, January 15, 2013 9:46:24 PM UTC+5:30, Dave Hylands wrote: > Hi, > > > > ----- Original Message ----- > > > From: "Mike Habicher" <[email protected]> > > > To: [email protected] > > > Sent: Tuesday, January 15, 2013 6:32:51 AM > > > Subject: Re: [b2g] b2g for unagi on mountain lion: stderr logs in DOM > > camera code not getting printed when running > > > the build on device > > > > > > Hi Satender, > > > > > > I'm not sure why std::cerr isn't working for you, but printf_stderr() > > > can be used to add additional log statements to the camera code. > > > > stdout & stderr are normally redirected to /dev/null when b2g is launched > normally. > > > > If you do: > > > > adb shell stop b2g > > adb shell /system/bin/b2g.sh > > > > then you will see stdout and stderr in the adb shell window. > > > > printf_stderr goes to the android log for b2g (aka logcat) > > > > Dave Hylands _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
