hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/pcmcia/rsrc_nonstatic.c
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * rsrc_nonstatic.c -- Resource management routines for !SS_CAP_STATIC_MAP sockets
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 *
85 * The initial developer of the original code is David A. Hinds
96 * <dahinds@users.sourceforge.net>. Portions created by David A. Hinds
....@@ -1085,7 +1082,7 @@
10851082 for (p = data->io_db.next; p != &data->io_db; p = p->next) {
10861083 if (ret > (PAGE_SIZE - 10))
10871084 continue;
1088
- ret += snprintf(&buf[ret], (PAGE_SIZE - ret - 1),
1085
+ ret += scnprintf(&buf[ret], (PAGE_SIZE - ret - 1),
10891086 "0x%08lx - 0x%08lx\n",
10901087 ((unsigned long) p->base),
10911088 ((unsigned long) p->base + p->num - 1));
....@@ -1142,7 +1139,7 @@
11421139 p = p->next) {
11431140 if (ret > (PAGE_SIZE - 10))
11441141 continue;
1145
- ret += snprintf(&buf[ret], (PAGE_SIZE - ret - 1),
1142
+ ret += scnprintf(&buf[ret], (PAGE_SIZE - ret - 1),
11461143 "0x%08lx - 0x%08lx\n",
11471144 ((unsigned long) p->base),
11481145 ((unsigned long) p->base + p->num - 1));
....@@ -1151,7 +1148,7 @@
11511148 for (p = data->mem_db.next; p != &data->mem_db; p = p->next) {
11521149 if (ret > (PAGE_SIZE - 10))
11531150 continue;
1154
- ret += snprintf(&buf[ret], (PAGE_SIZE - ret - 1),
1151
+ ret += scnprintf(&buf[ret], (PAGE_SIZE - ret - 1),
11551152 "0x%08lx - 0x%08lx\n",
11561153 ((unsigned long) p->base),
11571154 ((unsigned long) p->base + p->num - 1));