From: Simon Farnsworth Date: Mon, 19 Jan 2009 21:19:29 +0000 (+0000) Subject: solos: Slight debugging improvements X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4306cad6fe02e2946183ab29e510f94190b8fff3;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git solos: Slight debugging improvements Print a message if pskb_expand_head fails. Make atmdebug writable by root, so that you can turn printing of data sent to and received from the card on and off at runtime - useful for tracking corruption. Signed-off-by: Simon Farnsworth Signed-off-by: David Woodhouse --- diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index f0309546c356..3daa3a374313 100644 --- a/drivers/atm/solos-pci.c +++ b/drivers/atm/solos-pci.c @@ -91,7 +91,7 @@ MODULE_LICENSE("GPL"); MODULE_PARM_DESC(debug, "Enable Loopback"); MODULE_PARM_DESC(atmdebug, "Print ATM data"); module_param(debug, int, 0444); -module_param(atmdebug, int, 0444); +module_param(atmdebug, int, 0644); static int opens; @@ -541,6 +541,7 @@ static int psend(struct atm_vcc *vcc, struct sk_buff *skb) ret = pskb_expand_head(skb, expand_by, 0, GFP_ATOMIC); if (ret) { + dev_warn(&card->dev->dev, "pskb_expand_head failed.\n"); solos_pop(vcc, skb); return ret; }