aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/networking
diff options
context:
space:
mode:
authorShan Wei <shanwei@cn.fujitsu.com>2011-07-07 03:27:49 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-07 03:27:49 -0400
commitd804c6f2122ae4ffac21757c7774007e38093390 (patch)
treec10ced23928bed13ccc1a5a55064109dd1fcdcde /Documentation/networking
parentfa917ff739eace9e1e1c214bd067a7a0f7bc264b (diff)
net: doc: fix compile warning of no format arguments in ifenslave.c
Fix following warning in ifenslave.c with gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4). Documentation/networking/ifenslave.c:263:4: warning: format not a string literal and no format arguments Documentation/networking/ifenslave.c:271:3: warning: format not a string literal and no format arguments Documentation/networking/ifenslave.c:277:3: warning: format not a string literal and no format arguments Documentation/networking/ifenslave.c:285:3: warning: format not a string literal and no format arguments Documentation/networking/ifenslave.c:291:3: warning: format not a string literal and no format arguments Documentation/networking/ifenslave.c:292:3: warning: format not a string literal and no format arguments Documentation/networking/ifenslave.c:312:4: warning: format not a string literal and no format arguments Documentation/networking/ifenslave.c:323:3: warning: format not a string literal and no format arguments Documentation/networking/ifenslave.c:342:4: warning: format not a string literal and no format arguments Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking')
-rw-r--r--Documentation/networking/ifenslave.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Documentation/networking/ifenslave.c b/Documentation/networking/ifenslave.c
index 2bac9618c345..65968fbf1e49 100644
--- a/Documentation/networking/ifenslave.c
+++ b/Documentation/networking/ifenslave.c
@@ -260,7 +260,7 @@ int main(int argc, char *argv[])
260 case 'V': opt_V++; exclusive++; break; 260 case 'V': opt_V++; exclusive++; break;
261 261
262 case '?': 262 case '?':
263 fprintf(stderr, usage_msg); 263 fprintf(stderr, "%s", usage_msg);
264 res = 2; 264 res = 2;
265 goto out; 265 goto out;
266 } 266 }
@@ -268,13 +268,13 @@ int main(int argc, char *argv[])
268 268
269 /* options check */ 269 /* options check */
270 if (exclusive > 1) { 270 if (exclusive > 1) {
271 fprintf(stderr, usage_msg); 271 fprintf(stderr, "%s", usage_msg);
272 res = 2; 272 res = 2;
273 goto out; 273 goto out;
274 } 274 }
275 275
276 if (opt_v || opt_V) { 276 if (opt_v || opt_V) {
277 printf(version); 277 printf("%s", version);
278 if (opt_V) { 278 if (opt_V) {
279 res = 0; 279 res = 0;
280 goto out; 280 goto out;
@@ -282,14 +282,14 @@ int main(int argc, char *argv[])
282 } 282 }
283 283
284 if (opt_u) { 284 if (opt_u) {
285 printf(usage_msg); 285 printf("%s", usage_msg);
286 res = 0; 286 res = 0;
287 goto out; 287 goto out;
288 } 288 }
289 289
290 if (opt_h) { 290 if (opt_h) {
291 printf(usage_msg); 291 printf("%s", usage_msg);
292 printf(help_msg); 292 printf("%s", help_msg);
293 res = 0; 293 res = 0;
294 goto out; 294 goto out;
295 } 295 }
@@ -309,7 +309,7 @@ int main(int argc, char *argv[])
309 goto out; 309 goto out;
310 } else { 310 } else {
311 /* Just show usage */ 311 /* Just show usage */
312 fprintf(stderr, usage_msg); 312 fprintf(stderr, "%s", usage_msg);
313 res = 2; 313 res = 2;
314 goto out; 314 goto out;
315 } 315 }
@@ -320,7 +320,7 @@ int main(int argc, char *argv[])
320 master_ifname = *spp++; 320 master_ifname = *spp++;
321 321
322 if (master_ifname == NULL) { 322 if (master_ifname == NULL) {
323 fprintf(stderr, usage_msg); 323 fprintf(stderr, "%s", usage_msg);
324 res = 2; 324 res = 2;
325 goto out; 325 goto out;
326 } 326 }
@@ -339,7 +339,7 @@ int main(int argc, char *argv[])
339 339
340 if (slave_ifname == NULL) { 340 if (slave_ifname == NULL) {
341 if (opt_d || opt_c) { 341 if (opt_d || opt_c) {
342 fprintf(stderr, usage_msg); 342 fprintf(stderr, "%s", usage_msg);
343 res = 2; 343 res = 2;
344 goto out; 344 goto out;
345 } 345 }