| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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. |
|---|
| 7 | 4 | * |
|---|
| 8 | 5 | * The initial developer of the original code is David A. Hinds |
|---|
| 9 | 6 | * <dahinds@users.sourceforge.net>. Portions created by David A. Hinds |
|---|
| .. | .. |
|---|
| 1085 | 1082 | for (p = data->io_db.next; p != &data->io_db; p = p->next) { |
|---|
| 1086 | 1083 | if (ret > (PAGE_SIZE - 10)) |
|---|
| 1087 | 1084 | continue; |
|---|
| 1088 | | - ret += snprintf(&buf[ret], (PAGE_SIZE - ret - 1), |
|---|
| 1085 | + ret += scnprintf(&buf[ret], (PAGE_SIZE - ret - 1), |
|---|
| 1089 | 1086 | "0x%08lx - 0x%08lx\n", |
|---|
| 1090 | 1087 | ((unsigned long) p->base), |
|---|
| 1091 | 1088 | ((unsigned long) p->base + p->num - 1)); |
|---|
| .. | .. |
|---|
| 1142 | 1139 | p = p->next) { |
|---|
| 1143 | 1140 | if (ret > (PAGE_SIZE - 10)) |
|---|
| 1144 | 1141 | continue; |
|---|
| 1145 | | - ret += snprintf(&buf[ret], (PAGE_SIZE - ret - 1), |
|---|
| 1142 | + ret += scnprintf(&buf[ret], (PAGE_SIZE - ret - 1), |
|---|
| 1146 | 1143 | "0x%08lx - 0x%08lx\n", |
|---|
| 1147 | 1144 | ((unsigned long) p->base), |
|---|
| 1148 | 1145 | ((unsigned long) p->base + p->num - 1)); |
|---|
| .. | .. |
|---|
| 1151 | 1148 | for (p = data->mem_db.next; p != &data->mem_db; p = p->next) { |
|---|
| 1152 | 1149 | if (ret > (PAGE_SIZE - 10)) |
|---|
| 1153 | 1150 | continue; |
|---|
| 1154 | | - ret += snprintf(&buf[ret], (PAGE_SIZE - ret - 1), |
|---|
| 1151 | + ret += scnprintf(&buf[ret], (PAGE_SIZE - ret - 1), |
|---|
| 1155 | 1152 | "0x%08lx - 0x%08lx\n", |
|---|
| 1156 | 1153 | ((unsigned long) p->base), |
|---|
| 1157 | 1154 | ((unsigned long) p->base + p->num - 1)); |
|---|