.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * |
---|
3 | 4 | * Author Karsten Keil <kkeil@novell.com> |
---|
4 | 5 | * |
---|
5 | 6 | * Copyright 2008 by Karsten Keil <kkeil@novell.com> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License version 2 as |
---|
9 | | - * published by the Free Software Foundation. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, |
---|
12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | | - * GNU General Public License for more details. |
---|
15 | | - * |
---|
16 | 7 | */ |
---|
17 | 8 | |
---|
18 | 9 | #include <linux/gfp.h> |
---|
.. | .. |
---|
483 | 474 | if (bch->rx_skb) { |
---|
484 | 475 | len = skb_tailroom(bch->rx_skb); |
---|
485 | 476 | if (len < reqlen) { |
---|
486 | | - pr_warning("B%d no space for %d (only %d) bytes\n", |
---|
487 | | - bch->nr, reqlen, len); |
---|
| 477 | + pr_warn("B%d no space for %d (only %d) bytes\n", |
---|
| 478 | + bch->nr, reqlen, len); |
---|
488 | 479 | if (test_bit(FLG_TRANSPARENT, &bch->Flags)) { |
---|
489 | 480 | /* send what we have now and try a new buffer */ |
---|
490 | 481 | recv_Bchannel(bch, 0, true); |
---|
.. | .. |
---|
517 | 508 | } |
---|
518 | 509 | bch->rx_skb = mI_alloc_skb(len, GFP_ATOMIC); |
---|
519 | 510 | if (!bch->rx_skb) { |
---|
520 | | - pr_warning("B%d receive no memory for %d bytes\n", |
---|
521 | | - bch->nr, len); |
---|
| 511 | + pr_warn("B%d receive no memory for %d bytes\n", bch->nr, len); |
---|
522 | 512 | len = -ENOMEM; |
---|
523 | 513 | } |
---|
524 | 514 | return len; |
---|