Re: PATCH: 11/16: directory/fs/netfs backend

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

 



"Daniel P. Berrange" <berrange@xxxxxxxxxx> wrote:
...
> +    if (virRun(conn, (char**)mntargv, NULL) < 0) {
> +        free(src);
> +        virStorageReportError(conn, VIR_ERR_INTERNAL_ERROR, "cannot mount %s on %s: %d",
> +                              src, pool->def->target.path, strerror(errno));

format string mismatch.  You probably wanted to include ", error" at the
end of the arg list, to match the trailing %d.

If this gets by gcc -Wformat then virStorageReportError needs the usual
__attribute__((printf business, too.

BTW, I've seen many cases where a diagnostic includes both
the string, strerrno(error), and the %d-formatted errno value.
Does anyone know why these diagnostics include the actual errno value?

--
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]