From 951177e02d11f64d9072c8a9fb973e530c2a2b71 Mon Sep 17 00:00:00 2001 From: tzafrir Date: Fri, 3 Aug 2007 22:12:07 +0000 Subject: xpp.r4415: (from 1.2 r2811) * Show Astribank 6+2 as 6/2 channels and not 8/8 channels. - Added as a "subtype" to the device type (r4391). * Fixed a panic in BRI span shutdown method (r4393). * Changes to debug macros. * Add proper sysfs support (r4406) - A bus on whuch all of the Astribanks reside. - Replaces useless sysfs code that existed in the module. - Currently used to set the sync source automatically at device adition / removal. * BRI: We do need the T1 timer in NT. If it gets into G2 state (r4407). Merged revisions 2812 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.4 ........ * Ignore generated files on the new wctdm24xxp dir. (from 1.2 r2796) * Ignore two extra man pages on xpp/utils . Merged revisions 2797 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.4 ........ * Generate list of Zaptel Modules directories automatically. * Evaluate PERLLIBDIR only once. Closes: #10223 (Xorcom changeset:4379, from 1.2 r2758) Merged revisions 2759 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.4 git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2814 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- xpp/xpp_usb.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'xpp/xpp_usb.c') diff --git a/xpp/xpp_usb.c b/xpp/xpp_usb.c index 9ad8f27..b5ed7e3 100644 --- a/xpp/xpp_usb.c +++ b/xpp/xpp_usb.c @@ -272,8 +272,8 @@ static int xusb_xframe_send(xbus_t *xbus, xframe_t *xframe) static int rate_limit; if((rate_limit++ % 5000) == 0) - ERR("%s: USB device not present. Dropping packets (#%d).\n", - xbus->busname, rate_limit); + XBUS_ERR(xbus, "USB device not present. Dropping packets (#%d).\n", + rate_limit); ret = -ENODEV; goto freepack; } @@ -284,8 +284,8 @@ static int xusb_xframe_send(xbus_t *xbus, xframe_t *xframe) static int rate_limit; if((rate_limit++ % 5000) == 0) - ERR("%s: USB device is totaly stuck. Dropping packets (#%d).\n", - xbus->busname, rate_limit); + XBUS_ERR(xbus, "USB device is totaly stuck. Dropping packets (#%d).\n", + rate_limit); ret = -ENODEV; goto freepack; } @@ -592,7 +592,7 @@ static int xusb_probe(struct usb_interface *interface, const struct usb_device_i xusb->minor = interface->minor; /* let the user know what node this device is now attached to */ - INFO ("USB XPP device now attached to minor %d\n", xusb->minor); + INFO("USB XPP device now attached to minor %d\n", xusb->minor); /* Allocate high level structures */ xbus = xbus_new(&xusb_ops); @@ -631,7 +631,7 @@ static int xusb_probe(struct usb_interface *interface, const struct usb_device_i procsummary = create_proc_read_entry(PROC_USBXPP_SUMMARY, 0444, xbus->proc_xbus_dir, xusb_read_proc, xusb); if (!procsummary) { - ERR("Failed to create proc read entry for xbus %s\n", xbus->busname); + XBUS_ERR(xbus, "Failed to create proc file '%s'\n", PROC_USBXPP_SUMMARY); // FIXME: better error handling retval = -EIO; goto probe_failed; @@ -659,7 +659,7 @@ probe_failed: } if(xbus) { if(procsummary) { - DBG("Remove proc_entry: " PROC_USBXPP_SUMMARY "\n"); + XBUS_DBG(xbus, "Remove proc_entry: " PROC_USBXPP_SUMMARY "\n"); remove_proc_entry(PROC_USBXPP_SUMMARY, xbus->proc_xbus_dir); procsummary = NULL; } @@ -704,7 +704,7 @@ static void xusb_disconnect(struct usb_interface *interface) #ifdef CONFIG_PROC_FS if(xbus->proc_xbus_dir) { - DBG("Remove proc_entry: " PROC_USBXPP_SUMMARY "\n"); + XBUS_DBG(xbus, "Remove proc_entry: " PROC_USBXPP_SUMMARY "\n"); remove_proc_entry(PROC_USBXPP_SUMMARY, xbus->proc_xbus_dir); } #endif @@ -754,8 +754,8 @@ static void xpp_send_callback(USB_PASS_CB(urb)) static int rate_limit; if((rate_limit++ % 5003) == 0) - NOTICE("%s: Slagish USB. %ld usec to transmit a frame\n", - xbus->busname, usec_diff); + XBUS_NOTICE(xbus, "Slagish USB. %ld usec to transmit a frame\n", + usec_diff); } /* sync/async unlink faults aren't errors */ if (urb->status && !(urb->status == -ENOENT || urb->status == -ECONNRESET)) { @@ -820,7 +820,7 @@ static void xpp_receive_callback(USB_PASS_CB(urb)) static int rate_limit; if((rate_limit++ % 5003) == 0) - NOTICE("%s: Received a zero length URBs (%d)\n", xbus->busname, rate_limit); + XBUS_NOTICE(xbus, "Received a zero length URBs (%d)\n", rate_limit); XUSB_COUNTER(xusb, RCV_ZERO_LEN)++; goto end; } @@ -858,7 +858,7 @@ int __init xpp_usb_init(void) int result; //xusb_t *xusb; - INFO("%s revision %s\n", THIS_MODULE->name, XPP_VERSION); + INFO("revision %s\n", XPP_VERSION); /* register this driver with the USB subsystem */ result = usb_register(&xusb_driver); -- cgit v1.2.3