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.8.0_pre1^2~3283 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1de4561529bdb92b6647a634d9f2c2714e1758e5;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 Change-Id: I8c541bc1709d2c02fb58d6d15b4a66d95647d1e7 Reviewed-on: http://gerrit.openafs.org/5414 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/volser/vos.c b/src/volser/vos.c index 4559f5933..a8cbe418e 100644 --- a/src/volser/vos.c +++ b/src/volser/vos.c @@ -3449,7 +3449,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);