diff options
author | Simon Farnsworth <simon@farnz.org.uk> | 2009-01-19 16:19:29 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-01-26 22:18:17 -0500 |
commit | 4306cad6fe02e2946183ab29e510f94190b8fff3 (patch) | |
tree | 65e5640bd61dff8c9440f548f7c41a29875052c4 /drivers/atm/solos-pci.c | |
parent | b76811af7606b36cb0703f04449c301b9634dcbc (diff) |
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 <simon@farnz.org.uk>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/atm/solos-pci.c')
-rw-r--r-- | drivers/atm/solos-pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"); | |||
91 | MODULE_PARM_DESC(debug, "Enable Loopback"); | 91 | MODULE_PARM_DESC(debug, "Enable Loopback"); |
92 | MODULE_PARM_DESC(atmdebug, "Print ATM data"); | 92 | MODULE_PARM_DESC(atmdebug, "Print ATM data"); |
93 | module_param(debug, int, 0444); | 93 | module_param(debug, int, 0444); |
94 | module_param(atmdebug, int, 0444); | 94 | module_param(atmdebug, int, 0644); |
95 | 95 | ||
96 | static int opens; | 96 | static int opens; |
97 | 97 | ||
@@ -541,6 +541,7 @@ static int psend(struct atm_vcc *vcc, struct sk_buff *skb) | |||
541 | 541 | ||
542 | ret = pskb_expand_head(skb, expand_by, 0, GFP_ATOMIC); | 542 | ret = pskb_expand_head(skb, expand_by, 0, GFP_ATOMIC); |
543 | if (ret) { | 543 | if (ret) { |
544 | dev_warn(&card->dev->dev, "pskb_expand_head failed.\n"); | ||
544 | solos_pop(vcc, skb); | 545 | solos_pop(vcc, skb); |
545 | return ret; | 546 | return ret; |
546 | } | 547 | } |