Re: [PATCH 2/3]cgroup: show error when EINVAL caught

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Daniel P. Berrange [mailto:berrange@xxxxxxxxxx]
> Sent: Tuesday, October 15, 2013 7:24 PM
> To: Chen Hanxiao
> Cc: libvir-list@xxxxxxxxxx
> Subject: Re:  [PATCH 2/3]cgroup: show error when EINVAL caught
> 
> On Fri, Oct 11, 2013 at 09:41:23PM +0800, Chen Hanxiao wrote:
> > From: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx>
> >
> 
> This would fail to raise an error if '!tmp', so I re-arranged
> the code todo
> 
>   if (errno == EINVAL &&
>       (tmp = strrchr(keypath, '/'))) {
>     ...
> 
> so it falls back to the existing error report

Thanks for your help. I'll be more careful next time.

> 
> > +            virReportSystemError(errno,
> > +                                 _("Invalid value '%s' for '%s'"),
> value, ++tmp);
> > +            goto cleanup;


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]