From: Marc Dionne Date: Tue, 13 Sep 2011 23:32:37 +0000 (-0400) Subject: vos: print correct command name in diagnostics for changeloc X-Git-Tag: upstream/1.6.3^2~113 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2fa8aebb40c8884994ed6089a4b38cc73930cc79;p=packages%2Fo%2Fopenafs.git vos: print correct command name in diagnostics for changeloc Fix the label in the diagnostics message, it prints "addsite" instead of "changeloc" when an error occurs during vos changeloc Reviewed-on: http://gerrit.openafs.org/5414 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman (cherry picked from commit 1de4561529bdb92b6647a634d9f2c2714e1758e5) Change-Id: If87fd2a1ed0d4c2975479b5167f6e867db62437a Reviewed-on: http://gerrit.openafs.org/9431 Tested-by: BuildBot Reviewed-by: Derrick Brashear Reviewed-by: Andrew Deason Reviewed-by: Stephan Wiesand --- diff --git a/src/volser/vos.c b/src/volser/vos.c index b08e97ef5..79f4cd70f 100644 --- a/src/volser/vos.c +++ b/src/volser/vos.c @@ -3477,7 +3477,7 @@ ChangeLocation(struct cmd_syndesc *as, void *arock) } code = UV_ChangeLocation(aserver, apart, avolid); if (code) { - PrintDiagnostics("addsite", code); + PrintDiagnostics("changeloc", code); exit(1); } MapPartIdIntoName(apart, apartName);