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

Re: [libvirt] [PATCH] virt-login-shell joins users into lxc container.



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I can't seem to get the error reporting to turn on, what am I doing wrong.,

    if (virInitialize() < 0) {
        fprintf(stderr, _("Failed to initialize libvirt"));
        return EXIT_FAILURE;
    }

    if (virErrorInitialize() < 0) {
        fprintf(stderr, _("Failed to initialize libvirt Error Handling"));
        return EXIT_FAILURE;
    }

    virSetErrorFunc(NULL, NULL);


    virReportSystemError(EINVAL, "%s", _("Test"));

And I get no output, I thought I would get error on stderr?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlHyX7cACgkQrlYvE4MpobNrbQCgmR5hp4Lz9pgCv93V2Fb6r0ec
VZsAn13t/fiFqoOEmb6PIb5xa3Gzbr9o
=fhdb
-----END PGP SIGNATURE-----


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