diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-08-16 21:45:13 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-08-16 21:45:13 +0000 |
commit | bbdb7ec96737aee49feaa3d908438fc90fd27eea (patch) | |
tree | 594c8336e2308960c11cb97f17faef63ebd8a036 /xpp/xbus-sysfs.c | |
parent | fb790bb2e462f4b00be49c29e570587d5a7d21af (diff) |
xpp rev. 4515:
* BRI improvement: an 'nt_keepalive' parameter to xpd_bri forces
a BRI_NT to retry a connection indefinitely (this is our default).
When false it revert to the behaviour in changeset:4415 ("Bezeq like")
* Improvement in DBG macros. The print_dbg parameter is now set of
flags to debug. They are defined in zap_debug.h
* Don't use Astribanks connected to USB1 interfaces
Unless the user set the option usb1=1 for xpp_usb (r4504).
* And some more documentation...
* Include some of our variables in the default zaptel sample file.
Merged revisions 2860 via svnmerge from
https://origsvn.digium.com/svn/zaptel/branches/1.2
Merged revisions 2866 via svnmerge from
https://origsvn.digium.com/svn/zaptel/branches/1.4
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2867 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/xbus-sysfs.c')
-rw-r--r-- | xpp/xbus-sysfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xpp/xbus-sysfs.c b/xpp/xbus-sysfs.c index f444b50..d94c14d 100644 --- a/xpp/xbus-sysfs.c +++ b/xpp/xbus-sysfs.c @@ -68,7 +68,7 @@ extern int print_dbg; /*--------- Sysfs Bus handling ----*/ static int xpp_bus_match(struct device *dev, struct device_driver *driver) { - DBG("dev->bus_id = %s, driver->name = %s\n", dev->bus_id, driver->name); + DBG(GENERAL, "dev->bus_id = %s, driver->name = %s\n", dev->bus_id, driver->name); return 1; } @@ -106,7 +106,7 @@ static int xpp_bus_uevent(struct device *dev, char **envp, int num_envp, char *b if(!dev) return -ENODEV; xbus = dev_to_xbus(dev); - DBG("bus_id=%s xbus=%s\n", dev->bus_id, xbus->busname); + DBG(GENERAL, "bus_id=%s xbus=%s\n", dev->bus_id, xbus->busname); XBUS_ADD_UEVENT_VAR("XBUS_NUM=%02d", xbus->num); XBUS_ADD_UEVENT_VAR("XBUS_NAME=%s", xbus->busname); envp[i] = NULL; @@ -116,7 +116,7 @@ static int xpp_bus_uevent(struct device *dev, char **envp, int num_envp, char *b static void xpp_bus_release(struct device *dev) { - DBG("\n"); + DBG(GENERAL, "\n"); } static void xpp_dev_release(struct device *dev) @@ -125,7 +125,7 @@ static void xpp_dev_release(struct device *dev) BUG_ON(!dev); xbus = dev_to_xbus(dev); - XBUS_DBG(xbus, "\n"); + XBUS_DBG(GENERAL, xbus, "\n"); } static struct bus_type xpp_bus_type = { @@ -213,7 +213,7 @@ void xbus_sysfs_remove(xbus_t *xbus) struct device *astribank; BUG_ON(!xbus); - XBUS_DBG(xbus, "\n"); + XBUS_DBG(GENERAL, xbus, "\n"); astribank = &xbus->astribank; BUG_ON(!astribank); device_remove_file(&xbus->astribank, &dev_attr_status); @@ -229,7 +229,7 @@ int xbus_sysfs_create(xbus_t *xbus) BUG_ON(!xbus); astribank = &xbus->astribank; BUG_ON(!astribank); - XBUS_DBG(xbus, "\n"); + XBUS_DBG(GENERAL, xbus, "\n"); device_initialize(astribank); astribank->bus = &xpp_bus_type; astribank->parent = &xpp_bus; |