aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/clnt.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-03-05 23:47:47 -0500
committerDavid S. Miller <davem@davemloft.net>2008-03-05 23:47:47 -0500
commit0dc47877a3de00ceadea0005189656ae8dc52669 (patch)
tree7440a87385fe318cb42f0ae161be195f5e967d82 /net/sunrpc/clnt.c
parent6387c4bed539539b05fa773cf2ff26529dc3074c (diff)
net: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r--net/sunrpc/clnt.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 8c6a7f1a25e9..13a3718e7cc9 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
@@ -372,7 +372,7 @@ out_no_path:
372out_no_stats: 372out_no_stats:
373 kfree(new); 373 kfree(new);
374out_no_clnt: 374out_no_clnt:
375 dprintk("RPC: %s: returned error %d\n", __FUNCTION__, err); 375 dprintk("RPC: %s: returned error %d\n", __func__, err);
376 return ERR_PTR(err); 376 return ERR_PTR(err);
377} 377}
378EXPORT_SYMBOL_GPL(rpc_clone_client); 378EXPORT_SYMBOL_GPL(rpc_clone_client);
@@ -756,7 +756,7 @@ call_reserveresult(struct rpc_task *task)
756 } 756 }
757 757
758 printk(KERN_ERR "%s: status=%d, but no request slot, exiting\n", 758 printk(KERN_ERR "%s: status=%d, but no request slot, exiting\n",
759 __FUNCTION__, status); 759 __func__, status);
760 rpc_exit(task, -EIO); 760 rpc_exit(task, -EIO);
761 return; 761 return;
762 } 762 }
@@ -767,7 +767,7 @@ call_reserveresult(struct rpc_task *task)
767 */ 767 */
768 if (task->tk_rqstp) { 768 if (task->tk_rqstp) {
769 printk(KERN_ERR "%s: status=%d, request allocated anyway\n", 769 printk(KERN_ERR "%s: status=%d, request allocated anyway\n",
770 __FUNCTION__, status); 770 __func__, status);
771 xprt_release(task); 771 xprt_release(task);
772 } 772 }
773 773
@@ -779,7 +779,7 @@ call_reserveresult(struct rpc_task *task)
779 break; 779 break;
780 default: 780 default:
781 printk(KERN_ERR "%s: unrecognized error %d, exiting\n", 781 printk(KERN_ERR "%s: unrecognized error %d, exiting\n",
782 __FUNCTION__, status); 782 __func__, status);
783 break; 783 break;
784 } 784 }
785 rpc_exit(task, status); 785 rpc_exit(task, status);
@@ -1327,7 +1327,7 @@ call_verify(struct rpc_task *task)
1327 * undefined results 1327 * undefined results
1328 */ 1328 */
1329 dprintk("RPC: %5u %s: XDR representation not a multiple of" 1329 dprintk("RPC: %5u %s: XDR representation not a multiple of"
1330 " 4 bytes: 0x%x\n", task->tk_pid, __FUNCTION__, 1330 " 4 bytes: 0x%x\n", task->tk_pid, __func__,
1331 task->tk_rqstp->rq_rcv_buf.len); 1331 task->tk_rqstp->rq_rcv_buf.len);
1332 goto out_eio; 1332 goto out_eio;
1333 } 1333 }
@@ -1337,7 +1337,7 @@ call_verify(struct rpc_task *task)
1337 1337
1338 if ((n = ntohl(*p++)) != RPC_REPLY) { 1338 if ((n = ntohl(*p++)) != RPC_REPLY) {
1339 dprintk("RPC: %5u %s: not an RPC reply: %x\n", 1339 dprintk("RPC: %5u %s: not an RPC reply: %x\n",
1340 task->tk_pid, __FUNCTION__, n); 1340 task->tk_pid, __func__, n);
1341 goto out_garbage; 1341 goto out_garbage;
1342 } 1342 }
1343 if ((n = ntohl(*p++)) != RPC_MSG_ACCEPTED) { 1343 if ((n = ntohl(*p++)) != RPC_MSG_ACCEPTED) {
@@ -1349,13 +1349,13 @@ call_verify(struct rpc_task *task)
1349 case RPC_MISMATCH: 1349 case RPC_MISMATCH:
1350 dprintk("RPC: %5u %s: RPC call version " 1350 dprintk("RPC: %5u %s: RPC call version "
1351 "mismatch!\n", 1351 "mismatch!\n",
1352 task->tk_pid, __FUNCTION__); 1352 task->tk_pid, __func__);
1353 error = -EPROTONOSUPPORT; 1353 error = -EPROTONOSUPPORT;
1354 goto out_err; 1354 goto out_err;
1355 default: 1355 default:
1356 dprintk("RPC: %5u %s: RPC call rejected, " 1356 dprintk("RPC: %5u %s: RPC call rejected, "
1357 "unknown error: %x\n", 1357 "unknown error: %x\n",
1358 task->tk_pid, __FUNCTION__, n); 1358 task->tk_pid, __func__, n);
1359 goto out_eio; 1359 goto out_eio;
1360 } 1360 }
1361 if (--len < 0) 1361 if (--len < 0)
@@ -1369,7 +1369,7 @@ call_verify(struct rpc_task *task)
1369 break; 1369 break;
1370 task->tk_cred_retry--; 1370 task->tk_cred_retry--;
1371 dprintk("RPC: %5u %s: retry stale creds\n", 1371 dprintk("RPC: %5u %s: retry stale creds\n",
1372 task->tk_pid, __FUNCTION__); 1372 task->tk_pid, __func__);
1373 rpcauth_invalcred(task); 1373 rpcauth_invalcred(task);
1374 /* Ensure we obtain a new XID! */ 1374 /* Ensure we obtain a new XID! */
1375 xprt_release(task); 1375 xprt_release(task);
@@ -1382,7 +1382,7 @@ call_verify(struct rpc_task *task)
1382 break; 1382 break;
1383 task->tk_garb_retry--; 1383 task->tk_garb_retry--;
1384 dprintk("RPC: %5u %s: retry garbled creds\n", 1384 dprintk("RPC: %5u %s: retry garbled creds\n",
1385 task->tk_pid, __FUNCTION__); 1385 task->tk_pid, __func__);
1386 task->tk_action = call_bind; 1386 task->tk_action = call_bind;
1387 goto out_retry; 1387 goto out_retry;
1388 case RPC_AUTH_TOOWEAK: 1388 case RPC_AUTH_TOOWEAK:
@@ -1391,16 +1391,16 @@ call_verify(struct rpc_task *task)
1391 break; 1391 break;
1392 default: 1392 default:
1393 dprintk("RPC: %5u %s: unknown auth error: %x\n", 1393 dprintk("RPC: %5u %s: unknown auth error: %x\n",
1394 task->tk_pid, __FUNCTION__, n); 1394 task->tk_pid, __func__, n);
1395 error = -EIO; 1395 error = -EIO;
1396 } 1396 }
1397 dprintk("RPC: %5u %s: call rejected %d\n", 1397 dprintk("RPC: %5u %s: call rejected %d\n",
1398 task->tk_pid, __FUNCTION__, n); 1398 task->tk_pid, __func__, n);
1399 goto out_err; 1399 goto out_err;
1400 } 1400 }
1401 if (!(p = rpcauth_checkverf(task, p))) { 1401 if (!(p = rpcauth_checkverf(task, p))) {
1402 dprintk("RPC: %5u %s: auth check failed\n", 1402 dprintk("RPC: %5u %s: auth check failed\n",
1403 task->tk_pid, __FUNCTION__); 1403 task->tk_pid, __func__);
1404 goto out_garbage; /* bad verifier, retry */ 1404 goto out_garbage; /* bad verifier, retry */
1405 } 1405 }
1406 len = p - (__be32 *)iov->iov_base - 1; 1406 len = p - (__be32 *)iov->iov_base - 1;
@@ -1411,14 +1411,14 @@ call_verify(struct rpc_task *task)
1411 return p; 1411 return p;
1412 case RPC_PROG_UNAVAIL: 1412 case RPC_PROG_UNAVAIL:
1413 dprintk("RPC: %5u %s: program %u is unsupported by server %s\n", 1413 dprintk("RPC: %5u %s: program %u is unsupported by server %s\n",
1414 task->tk_pid, __FUNCTION__, 1414 task->tk_pid, __func__,
1415 (unsigned int)task->tk_client->cl_prog, 1415 (unsigned int)task->tk_client->cl_prog,
1416 task->tk_client->cl_server); 1416 task->tk_client->cl_server);
1417 error = -EPFNOSUPPORT; 1417 error = -EPFNOSUPPORT;
1418 goto out_err; 1418 goto out_err;
1419 case RPC_PROG_MISMATCH: 1419 case RPC_PROG_MISMATCH:
1420 dprintk("RPC: %5u %s: program %u, version %u unsupported by " 1420 dprintk("RPC: %5u %s: program %u, version %u unsupported by "
1421 "server %s\n", task->tk_pid, __FUNCTION__, 1421 "server %s\n", task->tk_pid, __func__,
1422 (unsigned int)task->tk_client->cl_prog, 1422 (unsigned int)task->tk_client->cl_prog,
1423 (unsigned int)task->tk_client->cl_vers, 1423 (unsigned int)task->tk_client->cl_vers,
1424 task->tk_client->cl_server); 1424 task->tk_client->cl_server);
@@ -1427,7 +1427,7 @@ call_verify(struct rpc_task *task)
1427 case RPC_PROC_UNAVAIL: 1427 case RPC_PROC_UNAVAIL:
1428 dprintk("RPC: %5u %s: proc %p unsupported by program %u, " 1428 dprintk("RPC: %5u %s: proc %p unsupported by program %u, "
1429 "version %u on server %s\n", 1429 "version %u on server %s\n",
1430 task->tk_pid, __FUNCTION__, 1430 task->tk_pid, __func__,
1431 task->tk_msg.rpc_proc, 1431 task->tk_msg.rpc_proc,
1432 task->tk_client->cl_prog, 1432 task->tk_client->cl_prog,
1433 task->tk_client->cl_vers, 1433 task->tk_client->cl_vers,
@@ -1436,11 +1436,11 @@ call_verify(struct rpc_task *task)
1436 goto out_err; 1436 goto out_err;
1437 case RPC_GARBAGE_ARGS: 1437 case RPC_GARBAGE_ARGS:
1438 dprintk("RPC: %5u %s: server saw garbage\n", 1438 dprintk("RPC: %5u %s: server saw garbage\n",
1439 task->tk_pid, __FUNCTION__); 1439 task->tk_pid, __func__);
1440 break; /* retry */ 1440 break; /* retry */
1441 default: 1441 default:
1442 dprintk("RPC: %5u %s: server accept status: %x\n", 1442 dprintk("RPC: %5u %s: server accept status: %x\n",
1443 task->tk_pid, __FUNCTION__, n); 1443 task->tk_pid, __func__, n);
1444 /* Also retry */ 1444 /* Also retry */
1445 } 1445 }
1446 1446
@@ -1449,7 +1449,7 @@ out_garbage:
1449 if (task->tk_garb_retry) { 1449 if (task->tk_garb_retry) {
1450 task->tk_garb_retry--; 1450 task->tk_garb_retry--;
1451 dprintk("RPC: %5u %s: retrying\n", 1451 dprintk("RPC: %5u %s: retrying\n",
1452 task->tk_pid, __FUNCTION__); 1452 task->tk_pid, __func__);
1453 task->tk_action = call_bind; 1453 task->tk_action = call_bind;
1454out_retry: 1454out_retry:
1455 return ERR_PTR(-EAGAIN); 1455 return ERR_PTR(-EAGAIN);
@@ -1459,11 +1459,11 @@ out_eio:
1459out_err: 1459out_err:
1460 rpc_exit(task, error); 1460 rpc_exit(task, error);
1461 dprintk("RPC: %5u %s: call failed with error %d\n", task->tk_pid, 1461 dprintk("RPC: %5u %s: call failed with error %d\n", task->tk_pid,
1462 __FUNCTION__, error); 1462 __func__, error);
1463 return ERR_PTR(error); 1463 return ERR_PTR(error);
1464out_overflow: 1464out_overflow:
1465 dprintk("RPC: %5u %s: server reply was truncated.\n", task->tk_pid, 1465 dprintk("RPC: %5u %s: server reply was truncated.\n", task->tk_pid,
1466 __FUNCTION__); 1466 __func__);
1467 goto out_garbage; 1467 goto out_garbage;
1468} 1468}
1469 1469