diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2014-01-10 11:59:36 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2014-01-10 11:59:36 +1100 |
commit | 55527371f92e3d4142da0e5d1f639f2222ec72f4 (patch) | |
tree | 83996f3ea0a1827989dcebfb10622ac5cd9c189a /lib | |
parent | e0598e23e8e5aa40f8c3192e140d8f8e938f21bb (diff) | |
parent | 0cb637bff80d5ba2b916bb19f19ffd59cd4079fd (diff) |
Merge remote-tracking branch 'swiotlb/linux-next'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/swiotlb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/swiotlb.c b/lib/swiotlb.c index e4399fa65ad6..4634ac9cdb38 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -505,7 +505,8 @@ phys_addr_t swiotlb_tbl_map_single(struct device *hwdev, not_found: spin_unlock_irqrestore(&io_tlb_lock, flags); - dev_warn(hwdev, "swiotlb buffer is full\n"); + if (printk_ratelimit()) + dev_warn(hwdev, "swiotlb buffer is full (sz: %zd bytes)\n", size); return SWIOTLB_MAP_ERROR; found: spin_unlock_irqrestore(&io_tlb_lock, flags); |