Signed-off-by: Ramy Elkest <ramyelkest@gmail.com>
---
src/util/virfilecache.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/util/virfilecache.c b/src/util/virfilecache.c
index dab7216..96ae96d 100644
--- a/src/util/virfilecache.c
+++ b/src/util/virfilecache.c
@@ -157,9 +157,8 @@ virFileCacheLoad(virFileCachePtr cache,
}
if (!(loadData = cache->handlers.loadFile(file, name, cache->priv))) {
- virErrorPtr err = virGetLastError();
VIR_WARN("Failed to load cached data from '%s' for '%s': %s",
- file, name, err ? NULLSTR(err->message) : "unknown error");
+ file, name, virGetLastErrorMessage());
virResetLastError();
ret = 0;
goto cleanup;
--
2.7.4
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
On Sat, May 05, 2018 at 01:04:19PM +0100, ramyelkest wrote: >Signed-off-by: Ramy Elkest <ramyelkest@gmail.com> There is something odd with your git setup. Did you type the signoff manually? Please set the name in your git config [0] to your legal name. That way you can certify your compliance with the DCO [1] by adding '-s' to your 'git commit' command. That way the name and e-mail in the generated signoff will match the name and e-mail in the author field, which is a requirement to get patches merged in libvirt. Jano [0] https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup [1] https://developercertificate.org/ -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
On Sat, May 05, 2018 at 01:04:19PM +0100, ramyelkest wrote: > Signed-off-by: Ramy Elkest <ramyelkest@gmail.com> > --- > src/util/virfilecache.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/src/util/virfilecache.c b/src/util/virfilecache.c > index dab7216..96ae96d 100644 > --- a/src/util/virfilecache.c > +++ b/src/util/virfilecache.c > @@ -157,9 +157,8 @@ virFileCacheLoad(virFileCachePtr cache, > } > > if (!(loadData = cache->handlers.loadFile(file, name, cache->priv))) { > - virErrorPtr err = virGetLastError(); > VIR_WARN("Failed to load cached data from '%s' for '%s': %s", > - file, name, err ? NULLSTR(err->message) : "unknown error"); > + file, name, virGetLastErrorMessage()); > virResetLastError(); > ret = 0; > goto cleanup; > -- Reviewed-by: Erik Skultety <eskultet@redhat.com> I'll tweak the subject line a bit before pushing: "util: Prefer virGetLastErrorMessage over direct err->message usage" > 2.7.4 > > -- > libvir-list mailing list > libvir-list@redhat.com > https://www.redhat.com/mailman/listinfo/libvir-list -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
© 2016 - 2025 Red Hat, Inc.