diff options
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 8834d68972cb..7b96ff38002f 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -43,7 +43,7 @@ | |||
43 | 43 | ||
44 | #define dprint_status(t) \ | 44 | #define dprint_status(t) \ |
45 | dprintk("RPC: %5u %s (status %d)\n", t->tk_pid, \ | 45 | dprintk("RPC: %5u %s (status %d)\n", t->tk_pid, \ |
46 | __FUNCTION__, t->tk_status) | 46 | __func__, t->tk_status) |
47 | 47 | ||
48 | /* | 48 | /* |
49 | * All RPC clients are linked into this list | 49 | * All RPC clients are linked into this list |
@@ -368,7 +368,7 @@ out_no_path: | |||
368 | out_no_stats: | 368 | out_no_stats: |
369 | kfree(new); | 369 | kfree(new); |
370 | out_no_clnt: | 370 | out_no_clnt: |
371 | dprintk("RPC: %s: returned error %d\n", __FUNCTION__, err); | 371 | dprintk("RPC: %s: returned error %d\n", __func__, err); |
372 | return ERR_PTR(err); | 372 | return ERR_PTR(err); |
373 | } | 373 | } |
374 | EXPORT_SYMBOL_GPL(rpc_clone_client); | 374 | EXPORT_SYMBOL_GPL(rpc_clone_client); |
@@ -752,7 +752,7 @@ call_reserveresult(struct rpc_task *task) | |||
752 | } | 752 | } |
753 | 753 | ||
754 | printk(KERN_ERR "%s: status=%d, but no request slot, exiting\n", | 754 | printk(KERN_ERR "%s: status=%d, but no request slot, exiting\n", |
755 | __FUNCTION__, status); | 755 | __func__, status); |
756 | rpc_exit(task, -EIO); | 756 | rpc_exit(task, -EIO); |
757 | return; | 757 | return; |
758 | } | 758 | } |
@@ -763,7 +763,7 @@ call_reserveresult(struct rpc_task *task) | |||
763 | */ | 763 | */ |
764 | if (task->tk_rqstp) { | 764 | if (task->tk_rqstp) { |
765 | printk(KERN_ERR "%s: status=%d, request allocated anyway\n", | 765 | printk(KERN_ERR "%s: status=%d, request allocated anyway\n", |
766 | __FUNCTION__, status); | 766 | __func__, status); |
767 | xprt_release(task); | 767 | xprt_release(task); |
768 | } | 768 | } |
769 | 769 | ||
@@ -775,7 +775,7 @@ call_reserveresult(struct rpc_task *task) | |||
775 | break; | 775 | break; |
776 | default: | 776 | default: |
777 | printk(KERN_ERR "%s: unrecognized error %d, exiting\n", | 777 | printk(KERN_ERR "%s: unrecognized error %d, exiting\n", |
778 | __FUNCTION__, status); | 778 | __func__, status); |
779 | break; | 779 | break; |
780 | } | 780 | } |
781 | rpc_exit(task, status); | 781 | rpc_exit(task, status); |
@@ -1323,7 +1323,7 @@ call_verify(struct rpc_task *task) | |||
1323 | * undefined results | 1323 | * undefined results |
1324 | */ | 1324 | */ |
1325 | dprintk("RPC: %5u %s: XDR representation not a multiple of" | 1325 | dprintk("RPC: %5u %s: XDR representation not a multiple of" |
1326 | " 4 bytes: 0x%x\n", task->tk_pid, __FUNCTION__, | 1326 | " 4 bytes: 0x%x\n", task->tk_pid, __func__, |
1327 | task->tk_rqstp->rq_rcv_buf.len); | 1327 | task->tk_rqstp->rq_rcv_buf.len); |
1328 | goto out_eio; | 1328 | goto out_eio; |
1329 | } | 1329 | } |
@@ -1333,7 +1333,7 @@ call_verify(struct rpc_task *task) | |||
1333 | 1333 | ||
1334 | if ((n = ntohl(*p++)) != RPC_REPLY) { | 1334 | if ((n = ntohl(*p++)) != RPC_REPLY) { |
1335 | dprintk("RPC: %5u %s: not an RPC reply: %x\n", | 1335 | dprintk("RPC: %5u %s: not an RPC reply: %x\n", |
1336 | task->tk_pid, __FUNCTION__, n); | 1336 | task->tk_pid, __func__, n); |
1337 | goto out_garbage; | 1337 | goto out_garbage; |
1338 | } | 1338 | } |
1339 | if ((n = ntohl(*p++)) != RPC_MSG_ACCEPTED) { | 1339 | if ((n = ntohl(*p++)) != RPC_MSG_ACCEPTED) { |
@@ -1345,13 +1345,13 @@ call_verify(struct rpc_task *task) | |||
1345 | case RPC_MISMATCH: | 1345 | case RPC_MISMATCH: |
1346 | dprintk("RPC: %5u %s: RPC call version " | 1346 | dprintk("RPC: %5u %s: RPC call version " |
1347 | "mismatch!\n", | 1347 | "mismatch!\n", |
1348 | task->tk_pid, __FUNCTION__); | 1348 | task->tk_pid, __func__); |
1349 | error = -EPROTONOSUPPORT; | 1349 | error = -EPROTONOSUPPORT; |
1350 | goto out_err; | 1350 | goto out_err; |
1351 | default: | 1351 | default: |
1352 | dprintk("RPC: %5u %s: RPC call rejected, " | 1352 | dprintk("RPC: %5u %s: RPC call rejected, " |
1353 | "unknown error: %x\n", | 1353 | "unknown error: %x\n", |
1354 | task->tk_pid, __FUNCTION__, n); | 1354 | task->tk_pid, __func__, n); |
1355 | goto out_eio; | 1355 | goto out_eio; |
1356 | } | 1356 | } |
1357 | if (--len < 0) | 1357 | if (--len < 0) |
@@ -1365,7 +1365,7 @@ call_verify(struct rpc_task *task) | |||
1365 | break; | 1365 | break; |
1366 | task->tk_cred_retry--; | 1366 | task->tk_cred_retry--; |
1367 | dprintk("RPC: %5u %s: retry stale creds\n", | 1367 | dprintk("RPC: %5u %s: retry stale creds\n", |
1368 | task->tk_pid, __FUNCTION__); | 1368 | task->tk_pid, __func__); |
1369 | rpcauth_invalcred(task); | 1369 | rpcauth_invalcred(task); |
1370 | /* Ensure we obtain a new XID! */ | 1370 | /* Ensure we obtain a new XID! */ |
1371 | xprt_release(task); | 1371 | xprt_release(task); |
@@ -1378,7 +1378,7 @@ call_verify(struct rpc_task *task) | |||
1378 | break; | 1378 | break; |
1379 | task->tk_garb_retry--; | 1379 | task->tk_garb_retry--; |
1380 | dprintk("RPC: %5u %s: retry garbled creds\n", | 1380 | dprintk("RPC: %5u %s: retry garbled creds\n", |
1381 | task->tk_pid, __FUNCTION__); | 1381 | task->tk_pid, __func__); |
1382 | task->tk_action = call_bind; | 1382 | task->tk_action = call_bind; |
1383 | goto out_retry; | 1383 | goto out_retry; |
1384 | case RPC_AUTH_TOOWEAK: | 1384 | case RPC_AUTH_TOOWEAK: |
@@ -1387,16 +1387,16 @@ call_verify(struct rpc_task *task) | |||
1387 | break; | 1387 | break; |
1388 | default: | 1388 | default: |
1389 | dprintk("RPC: %5u %s: unknown auth error: %x\n", | 1389 | dprintk("RPC: %5u %s: unknown auth error: %x\n", |
1390 | task->tk_pid, __FUNCTION__, n); | 1390 | task->tk_pid, __func__, n); |
1391 | error = -EIO; | 1391 | error = -EIO; |
1392 | } | 1392 | } |
1393 | dprintk("RPC: %5u %s: call rejected %d\n", | 1393 | dprintk("RPC: %5u %s: call rejected %d\n", |
1394 | task->tk_pid, __FUNCTION__, n); | 1394 | task->tk_pid, __func__, n); |
1395 | goto out_err; | 1395 | goto out_err; |
1396 | } | 1396 | } |
1397 | if (!(p = rpcauth_checkverf(task, p))) { | 1397 | if (!(p = rpcauth_checkverf(task, p))) { |
1398 | dprintk("RPC: %5u %s: auth check failed\n", | 1398 | dprintk("RPC: %5u %s: auth check failed\n", |
1399 | task->tk_pid, __FUNCTION__); | 1399 | task->tk_pid, __func__); |
1400 | goto out_garbage; /* bad verifier, retry */ | 1400 | goto out_garbage; /* bad verifier, retry */ |
1401 | } | 1401 | } |
1402 | len = p - (__be32 *)iov->iov_base - 1; | 1402 | len = p - (__be32 *)iov->iov_base - 1; |
@@ -1407,14 +1407,14 @@ call_verify(struct rpc_task *task) | |||
1407 | return p; | 1407 | return p; |
1408 | case RPC_PROG_UNAVAIL: | 1408 | case RPC_PROG_UNAVAIL: |
1409 | dprintk("RPC: %5u %s: program %u is unsupported by server %s\n", | 1409 | dprintk("RPC: %5u %s: program %u is unsupported by server %s\n", |
1410 | task->tk_pid, __FUNCTION__, | 1410 | task->tk_pid, __func__, |
1411 | (unsigned int)task->tk_client->cl_prog, | 1411 | (unsigned int)task->tk_client->cl_prog, |
1412 | task->tk_client->cl_server); | 1412 | task->tk_client->cl_server); |
1413 | error = -EPFNOSUPPORT; | 1413 | error = -EPFNOSUPPORT; |
1414 | goto out_err; | 1414 | goto out_err; |
1415 | case RPC_PROG_MISMATCH: | 1415 | case RPC_PROG_MISMATCH: |
1416 | dprintk("RPC: %5u %s: program %u, version %u unsupported by " | 1416 | dprintk("RPC: %5u %s: program %u, version %u unsupported by " |
1417 | "server %s\n", task->tk_pid, __FUNCTION__, | 1417 | "server %s\n", task->tk_pid, __func__, |
1418 | (unsigned int)task->tk_client->cl_prog, | 1418 | (unsigned int)task->tk_client->cl_prog, |
1419 | (unsigned int)task->tk_client->cl_vers, | 1419 | (unsigned int)task->tk_client->cl_vers, |
1420 | task->tk_client->cl_server); | 1420 | task->tk_client->cl_server); |
@@ -1423,7 +1423,7 @@ call_verify(struct rpc_task *task) | |||
1423 | case RPC_PROC_UNAVAIL: | 1423 | case RPC_PROC_UNAVAIL: |
1424 | dprintk("RPC: %5u %s: proc %p unsupported by program %u, " | 1424 | dprintk("RPC: %5u %s: proc %p unsupported by program %u, " |
1425 | "version %u on server %s\n", | 1425 | "version %u on server %s\n", |
1426 | task->tk_pid, __FUNCTION__, | 1426 | task->tk_pid, __func__, |
1427 | task->tk_msg.rpc_proc, | 1427 | task->tk_msg.rpc_proc, |
1428 | task->tk_client->cl_prog, | 1428 | task->tk_client->cl_prog, |
1429 | task->tk_client->cl_vers, | 1429 | task->tk_client->cl_vers, |
@@ -1432,11 +1432,11 @@ call_verify(struct rpc_task *task) | |||
1432 | goto out_err; | 1432 | goto out_err; |
1433 | case RPC_GARBAGE_ARGS: | 1433 | case RPC_GARBAGE_ARGS: |
1434 | dprintk("RPC: %5u %s: server saw garbage\n", | 1434 | dprintk("RPC: %5u %s: server saw garbage\n", |
1435 | task->tk_pid, __FUNCTION__); | 1435 | task->tk_pid, __func__); |
1436 | break; /* retry */ | 1436 | break; /* retry */ |
1437 | default: | 1437 | default: |
1438 | dprintk("RPC: %5u %s: server accept status: %x\n", | 1438 | dprintk("RPC: %5u %s: server accept status: %x\n", |
1439 | task->tk_pid, __FUNCTION__, n); | 1439 | task->tk_pid, __func__, n); |
1440 | /* Also retry */ | 1440 | /* Also retry */ |
1441 | } | 1441 | } |
1442 | 1442 | ||
@@ -1445,7 +1445,7 @@ out_garbage: | |||
1445 | if (task->tk_garb_retry) { | 1445 | if (task->tk_garb_retry) { |
1446 | task->tk_garb_retry--; | 1446 | task->tk_garb_retry--; |
1447 | dprintk("RPC: %5u %s: retrying\n", | 1447 | dprintk("RPC: %5u %s: retrying\n", |
1448 | task->tk_pid, __FUNCTION__); | 1448 | task->tk_pid, __func__); |
1449 | task->tk_action = call_bind; | 1449 | task->tk_action = call_bind; |
1450 | out_retry: | 1450 | out_retry: |
1451 | return ERR_PTR(-EAGAIN); | 1451 | return ERR_PTR(-EAGAIN); |
@@ -1455,11 +1455,11 @@ out_eio: | |||
1455 | out_err: | 1455 | out_err: |
1456 | rpc_exit(task, error); | 1456 | rpc_exit(task, error); |
1457 | dprintk("RPC: %5u %s: call failed with error %d\n", task->tk_pid, | 1457 | dprintk("RPC: %5u %s: call failed with error %d\n", task->tk_pid, |
1458 | __FUNCTION__, error); | 1458 | __func__, error); |
1459 | return ERR_PTR(error); | 1459 | return ERR_PTR(error); |
1460 | out_overflow: | 1460 | out_overflow: |
1461 | dprintk("RPC: %5u %s: server reply was truncated.\n", task->tk_pid, | 1461 | dprintk("RPC: %5u %s: server reply was truncated.\n", task->tk_pid, |
1462 | __FUNCTION__); | 1462 | __func__); |
1463 | goto out_garbage; | 1463 | goto out_garbage; |
1464 | } | 1464 | } |
1465 | 1465 | ||