Commit 4b183dd
committed
mm, slab: cleanup slab_bug() parameters
slab_err() has variadic printf arguments but instead of passing them to
slab_bug() it does vsnprintf() to a buffer and passes %s, buf.
To allow passing them directly, turn slab_bug() to __slab_bug() with a
va_list parameter, and slab_bug() a wrapper with fmt, ... parameters.
Then slab_err() can call __slab_bug() without the intermediate buffer.
Also constify fmt everywhere, which also simplifies object_err()'s
call to slab_bug().
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>1 parent 3f6f32b commit 4b183dd
1 file changed
Lines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1017 | 1017 | | |
1018 | 1018 | | |
1019 | 1019 | | |
1020 | | - | |
| 1020 | + | |
1021 | 1021 | | |
1022 | 1022 | | |
1023 | 1023 | | |
1024 | 1024 | | |
1025 | | - | |
| 1025 | + | |
1026 | 1026 | | |
1027 | 1027 | | |
1028 | 1028 | | |
| |||
1031 | 1031 | | |
1032 | 1032 | | |
1033 | 1033 | | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
1034 | 1043 | | |
1035 | | - | |
| 1044 | + | |
1036 | 1045 | | |
1037 | 1046 | | |
1038 | 1047 | | |
| |||
1088 | 1097 | | |
1089 | 1098 | | |
1090 | 1099 | | |
1091 | | - | |
| 1100 | + | |
1092 | 1101 | | |
1093 | 1102 | | |
1094 | 1103 | | |
1095 | 1104 | | |
1096 | | - | |
| 1105 | + | |
1097 | 1106 | | |
1098 | 1107 | | |
1099 | 1108 | | |
| |||
1129 | 1138 | | |
1130 | 1139 | | |
1131 | 1140 | | |
1132 | | - | |
1133 | 1141 | | |
1134 | 1142 | | |
1135 | 1143 | | |
1136 | 1144 | | |
1137 | 1145 | | |
1138 | | - | |
| 1146 | + | |
1139 | 1147 | | |
1140 | | - | |
| 1148 | + | |
1141 | 1149 | | |
1142 | 1150 | | |
1143 | 1151 | | |
| |||
1175 | 1183 | | |
1176 | 1184 | | |
1177 | 1185 | | |
1178 | | - | |
| 1186 | + | |
1179 | 1187 | | |
1180 | 1188 | | |
1181 | 1189 | | |
| |||
1190 | 1198 | | |
1191 | 1199 | | |
1192 | 1200 | | |
1193 | | - | |
| 1201 | + | |
1194 | 1202 | | |
1195 | 1203 | | |
1196 | 1204 | | |
| |||
0 commit comments