Whamcloud - gitweb
LU-12757 utils: avoid newline inside error message
When calling llapi_error() the format string should not end in a
newline, since the error string is appended to the output with
its own newline.
Fix several callers to not supply their own newline, and callers
that duplicate the error string in the error message itself.
In the case that there are callers that *do* include a newline,
handle this gracefully to avoid splitting the error across lines.
Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ie8f7206d82faccb3b33e2fc62b00f5226b3ebbe5
Reviewed-on: https://review.whamcloud.com/36176
Reviewed-by: Ben Evans <bevans@cray.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>