summaryrefslogtreecommitdiff
path: root/xpp/xpp_usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/xpp_usb.c')
-rw-r--r--xpp/xpp_usb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xpp/xpp_usb.c b/xpp/xpp_usb.c
index 3325f59..30aa62b 100644
--- a/xpp/xpp_usb.c
+++ b/xpp/xpp_usb.c
@@ -266,8 +266,9 @@ static int xusb_xframe_send(xbus_t *xbus, xframe_t *xframe)
if(atomic_read(&xusb->pending_writes) > MAX_PENDING_WRITES) {
static int rate_limit;
- if((rate_limit++ % 1000) < 10)
- ERR("%s: %s: more than %d pending writes. Dropping.\n", __FUNCTION__, xbus->busname, MAX_PENDING_WRITES);
+ if((rate_limit++ % 5000) == 0)
+ ERR("%s: %s: more than %d pending writes (%d). Dropping.\n",
+ __FUNCTION__, xbus->busname, MAX_PENDING_WRITES, rate_limit);
ret = -ENODEV;
goto freepack;
}