[libvirt] [PATCHv3 4/4] Reword error message for oversized cpu time fields

Eric Blake eblake at redhat.com
Mon Jan 27 16:17:28 UTC 2014


On 01/22/2014 06:37 AM, Ján Tomko wrote:
> ---
>  src/nodeinfo.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 

ACK.  Not like this error will ever be hit in real life.

> diff --git a/src/nodeinfo.c b/src/nodeinfo.c
> index 9f82330..ed7accc 100644
> --- a/src/nodeinfo.c
> +++ b/src/nodeinfo.c
> @@ -681,7 +681,8 @@ virNodeCPUStatsAssign(virNodeCPUStatsPtr param,
>  {
>      if (virStrcpyStatic(param->field, name) == NULL) {
>          virReportError(VIR_ERR_INTERNAL_ERROR,
> -                       "%s", _("Field kernel cpu time too long for destination"));
> +                       "%s", _("kernel cpu time field is too long"
> +                               " for the destination"));
>          return -1;
>      }
>      param->value = value;
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140127/7966f67d/attachment-0001.sig>


More information about the libvir-list mailing list