@@ -84,13 +84,12 @@ set_match_v0_checkentry(const struct xt_mtchk_param *par)
8484 index = ip_set_nfnl_get_byindex (par -> net , info -> match_set .index );
8585
8686 if (index == IPSET_INVALID_ID ) {
87- pr_warning ("Cannot find set identified by id %u to match\n" ,
88- info -> match_set .index );
87+ pr_warn ("Cannot find set identified by id %u to match\n" ,
88+ info -> match_set .index );
8989 return - ENOENT ;
9090 }
9191 if (info -> match_set .u .flags [IPSET_DIM_MAX - 1 ] != 0 ) {
92- pr_warning ("Protocol error: set match dimension "
93- "is over the limit!\n" );
92+ pr_warn ("Protocol error: set match dimension is over the limit!\n" );
9493 ip_set_nfnl_put (par -> net , info -> match_set .index );
9594 return - ERANGE ;
9695 }
@@ -134,13 +133,12 @@ set_match_v1_checkentry(const struct xt_mtchk_param *par)
134133 index = ip_set_nfnl_get_byindex (par -> net , info -> match_set .index );
135134
136135 if (index == IPSET_INVALID_ID ) {
137- pr_warning ("Cannot find set identified by id %u to match\n" ,
138- info -> match_set .index );
136+ pr_warn ("Cannot find set identified by id %u to match\n" ,
137+ info -> match_set .index );
139138 return - ENOENT ;
140139 }
141140 if (info -> match_set .dim > IPSET_DIM_MAX ) {
142- pr_warning ("Protocol error: set match dimension "
143- "is over the limit!\n" );
141+ pr_warn ("Protocol error: set match dimension is over the limit!\n" );
144142 ip_set_nfnl_put (par -> net , info -> match_set .index );
145143 return - ERANGE ;
146144 }
@@ -230,26 +228,25 @@ set_target_v0_checkentry(const struct xt_tgchk_param *par)
230228 if (info -> add_set .index != IPSET_INVALID_ID ) {
231229 index = ip_set_nfnl_get_byindex (par -> net , info -> add_set .index );
232230 if (index == IPSET_INVALID_ID ) {
233- pr_warning ("Cannot find add_set index %u as target\n" ,
234- info -> add_set .index );
231+ pr_warn ("Cannot find add_set index %u as target\n" ,
232+ info -> add_set .index );
235233 return - ENOENT ;
236234 }
237235 }
238236
239237 if (info -> del_set .index != IPSET_INVALID_ID ) {
240238 index = ip_set_nfnl_get_byindex (par -> net , info -> del_set .index );
241239 if (index == IPSET_INVALID_ID ) {
242- pr_warning ("Cannot find del_set index %u as target\n" ,
243- info -> del_set .index );
240+ pr_warn ("Cannot find del_set index %u as target\n" ,
241+ info -> del_set .index );
244242 if (info -> add_set .index != IPSET_INVALID_ID )
245243 ip_set_nfnl_put (par -> net , info -> add_set .index );
246244 return - ENOENT ;
247245 }
248246 }
249247 if (info -> add_set .u .flags [IPSET_DIM_MAX - 1 ] != 0 ||
250248 info -> del_set .u .flags [IPSET_DIM_MAX - 1 ] != 0 ) {
251- pr_warning ("Protocol error: SET target dimension "
252- "is over the limit!\n" );
249+ pr_warn ("Protocol error: SET target dimension is over the limit!\n" );
253250 if (info -> add_set .index != IPSET_INVALID_ID )
254251 ip_set_nfnl_put (par -> net , info -> add_set .index );
255252 if (info -> del_set .index != IPSET_INVALID_ID )
@@ -303,26 +300,25 @@ set_target_v1_checkentry(const struct xt_tgchk_param *par)
303300 if (info -> add_set .index != IPSET_INVALID_ID ) {
304301 index = ip_set_nfnl_get_byindex (par -> net , info -> add_set .index );
305302 if (index == IPSET_INVALID_ID ) {
306- pr_warning ("Cannot find add_set index %u as target\n" ,
307- info -> add_set .index );
303+ pr_warn ("Cannot find add_set index %u as target\n" ,
304+ info -> add_set .index );
308305 return - ENOENT ;
309306 }
310307 }
311308
312309 if (info -> del_set .index != IPSET_INVALID_ID ) {
313310 index = ip_set_nfnl_get_byindex (par -> net , info -> del_set .index );
314311 if (index == IPSET_INVALID_ID ) {
315- pr_warning ("Cannot find del_set index %u as target\n" ,
316- info -> del_set .index );
312+ pr_warn ("Cannot find del_set index %u as target\n" ,
313+ info -> del_set .index );
317314 if (info -> add_set .index != IPSET_INVALID_ID )
318315 ip_set_nfnl_put (par -> net , info -> add_set .index );
319316 return - ENOENT ;
320317 }
321318 }
322319 if (info -> add_set .dim > IPSET_DIM_MAX ||
323320 info -> del_set .dim > IPSET_DIM_MAX ) {
324- pr_warning ("Protocol error: SET target dimension "
325- "is over the limit!\n" );
321+ pr_warn ("Protocol error: SET target dimension is over the limit!\n" );
326322 if (info -> add_set .index != IPSET_INVALID_ID )
327323 ip_set_nfnl_put (par -> net , info -> add_set .index );
328324 if (info -> del_set .index != IPSET_INVALID_ID )
0 commit comments