Hi all.

I'm still troubleshooting my Sangoma ADSL card's onboard PPP stack under OpenBSD. The driver seems to operate, but the PPP stack fails to properly login to my ISP.

The PPP stack code is a hacked version of a BSD-derived implementation, and is... interesting. It is rigged with plenty of runtime debugging code in the form of a variety of macros. Eventually, these macros boil down to a call to the kernel log() function:

# if (defined __FreeBSD__) || (defined __OpenBSD__) || defined(__NetBSD__)
#  define DEBUG_PRINT(format,msg...)    log(LOG_INFO, format, ##msg)
#  define _DEBUG_PRINT(format,msg...)   log(LOG_INFO, format, ##msg)


I've been trying to get this debugging to work. I setup a syslog configuration entry to redirect *.info to /var/log/info, since I couldn't tell what "facility" was being employed in this case. Lots of other info-level events showed up there, but nothing from the driver I was hoping to listen to.

  My question comes as a request for one of two variants:

Does anyone see anything I'm doing wrong, and if so, do you have a suggestion for how to make logging work as originally intended?

Alternately, for some temporary debugging output, is there a simpler and more robust way to temporarily jam this junk from inside the driver out where I can see it?

Thanks in advance for any advice -- I'm a bit of a newbie when it comes to kernel-level stuff.

--
     Chris 'Xenon' Hanson | Xenon @ 3D Nature | http://www.3DNature.com/
 "I set the wheels in motion, turn up all the machines, activate the programs,
  and run behind the scenes. I set the clouds in motion, turn up light and 
sound,
  activate the window, and watch the world go 'round." -Prime Mover, Rush.

Reply via email to