| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * APEI Error Record Serialization Table debug support |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 8 | 9 | * |
|---|
| 9 | 10 | * Copyright 2010 Intel Corp. |
|---|
| 10 | 11 | * Author: Huang Ying <ying.huang@intel.com> |
|---|
| 11 | | - * |
|---|
| 12 | | - * This program is free software; you can redistribute it and/or |
|---|
| 13 | | - * modify it under the terms of the GNU General Public License version |
|---|
| 14 | | - * 2 as published by the Free Software Foundation. |
|---|
| 15 | | - * |
|---|
| 16 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 17 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 18 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 19 | | - * GNU General Public License for more details. |
|---|
| 20 | 12 | */ |
|---|
| 21 | 13 | |
|---|
| 22 | 14 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 126 | 118 | if (rc < 0) |
|---|
| 127 | 119 | goto out; |
|---|
| 128 | 120 | if (len > ERST_DBG_RECORD_LEN_MAX) { |
|---|
| 129 | | - pr_warning(ERST_DBG_PFX |
|---|
| 130 | | - "Record (ID: 0x%llx) length is too long: %zd\n", |
|---|
| 131 | | - id, len); |
|---|
| 121 | + pr_warn(ERST_DBG_PFX |
|---|
| 122 | + "Record (ID: 0x%llx) length is too long: %zd\n", id, len); |
|---|
| 132 | 123 | rc = -EIO; |
|---|
| 133 | 124 | goto out; |
|---|
| 134 | 125 | } |
|---|