summaryrefslogtreecommitdiff
path: root/src/rpc/gendispatch.pl
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-07-18 14:35:21 +0100
committerDaniel P. Berrange <berrange@redhat.com>2012-07-20 12:42:03 +0100
commit4e28b322d40ec4d60ee38296092a0d468f6f7398 (patch)
treed832b4cb0af901fc022e981a689bc022910f8ad3 /src/rpc/gendispatch.pl
parent76a0ecd2cd9444b8ab42a9286eccb9ebeb06a1be (diff)
downloadlibvirt-4e28b322d40ec4d60ee38296092a0d468f6f7398.tar.gz
Replace use of remoteError with virReportError
Update the remote driver to use virReportError instead of the remoteError custom macro Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'src/rpc/gendispatch.pl')
-rwxr-xr-xsrc/rpc/gendispatch.pl18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/rpc/gendispatch.pl b/src/rpc/gendispatch.pl
index f161ee0fe2..36248fd6fb 100755
--- a/src/rpc/gendispatch.pl
+++ b/src/rpc/gendispatch.pl
@@ -1424,9 +1424,9 @@ elsif ($opt_k) {
foreach my $args_check (@args_check_list) {
print "\n";
print " if ($args_check->{arg} > $args_check->{limit}) {\n";
- print " remoteError(VIR_ERR_RPC,\n";
- print " _(\"%s length greater than maximum: %d > %d\"),\n";
- print " $args_check->{name}, (int)$args_check->{arg}, $args_check->{limit});\n";
+ print " virReportError(VIR_ERR_RPC,\n";
+ print " _(\"%s length greater than maximum: %d > %d\"),\n";
+ print " $args_check->{name}, (int)$args_check->{arg}, $args_check->{limit});\n";
print " goto done;\n";
print " }\n";
}
@@ -1434,9 +1434,9 @@ elsif ($opt_k) {
if ($single_ret_as_list) {
print "\n";
print " if ($single_ret_list_max_var > $single_ret_list_max_define) {\n";
- print " remoteError(VIR_ERR_RPC,\n";
- print " _(\"too many remote ${single_ret_list_error_msg_type}s: %d > %d\"),\n";
- print " $single_ret_list_max_var, $single_ret_list_max_define);\n";
+ print " virReportError(VIR_ERR_RPC,\n";
+ print " _(\"too many remote ${single_ret_list_error_msg_type}s: %d > %d\"),\n";
+ print " $single_ret_list_max_var, $single_ret_list_max_define);\n";
print " goto done;\n";
print " }\n";
}
@@ -1491,9 +1491,9 @@ elsif ($opt_k) {
if ($single_ret_as_list) {
print " if (ret.$single_ret_list_name.${single_ret_list_name}_len > $single_ret_list_max_var) {\n";
- print " remoteError(VIR_ERR_RPC,\n";
- print " _(\"too many remote ${single_ret_list_error_msg_type}s: %d > %d\"),\n";
- print " ret.$single_ret_list_name.${single_ret_list_name}_len, $single_ret_list_max_var);\n";
+ print " virReportError(VIR_ERR_RPC,\n";
+ print " _(\"too many remote ${single_ret_list_error_msg_type}s: %d > %d\"),\n";
+ print " ret.$single_ret_list_name.${single_ret_list_name}_len, $single_ret_list_max_var);\n";
print " goto cleanup;\n";
print " }\n";
print "\n";