examples: fix mingw build vs. printf
examples: fix mingw build vs. printf

Mingw *printf is a moving target; newer mingw now provides a version
of asprintf() that fails to understand %lld:

  CC       event_test-event-test.o
../../../../examples/domain-events/events-c/event-test.c: In function 'myDomainEventRTCChangeCallback':
../../../../examples/domain-events/events-c/event-test.c:270:18: error: unknown conversion type character 'l' in format [-Werror=format=]
                  virDomainGetID(dom), offset) < 0)
                  ^

But since our examples already admitted that they were hacking around
a mingw deficiency, it is easier to just use printf() directly, coupled
with <inttypes.h> macros, for a more portable work-around.

* examples/domain-events/events-c/event-test.c
(myDomainEventRTCChangeCallback): Use PRIdMAX instead of asprintf.

Signed-off-by: Eric Blake <a9da18479c871fe903d9590822cfe2629c6a4d11@redhat.com>

rlaager/libvirt,zippy2/libvirt,zippy2/libvirt,fabianfreyer/libvirt,datto/libvirt,elmarco/libvirt,shugaoye/libvirt,elmarco/libvirt,elmarco/libvirt,olafhering/libvirt,eskultety/libvirt,shugaoye/libvirt,andreabolognani/libvirt,zhlcindy/libvirt-1.1.4-maintain,rlaager/libvirt,taget/libvirt,andreabolognani/libvirt,agx/libvirt,crobinso/libvirt,libvirt/libvirt,jfehlig/libvirt,olafhering/libvirt,zippy2/libvirt,taget/libvirt,jfehlig/libvirt,zhlcindy/libvirt-1.1.4-maintain,zhlcindy/libvirt-1.1.4-maintain,taget/libvirt,agx/libvirt,cbosdo/libvirt,jardasgit/libvirt,rlaager/libvirt,agx/libvirt,libvirt/libvirt,VenkatDatta/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,rlaager/libvirt,eskultety/libvirt,nertpinx/libvirt,libvirt/libvirt,eskultety/libvirt,VenkatDatta/libvirt,datto/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,crobinso/libvirt,andreabolognani/libvirt,jfehlig/libvirt,jardasgit/libvirt,zippy2/libvirt,jardasgit/libvirt,nertpinx/libvirt,eskultety/libvirt,shugaoye/libvirt,cbosdo/libvirt,agx/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,datto/libvirt,libvirt/libvirt,rlaager/libvirt,zhlcindy/libvirt-1.1.4-maintain,zhlcindy/libvirt-1.1.4-maintain,datto/libvirt,cbosdo/libvirt,eskultety/libvirt,taget/libvirt,cbosdo/libvirt,andreabolognani/libvirt,agx/libvirt,olafhering/libvirt,datto/libvirt,elmarco/libvirt,fabianfreyer/libvirt,cbosdo/libvirt,jfehlig/libvirt,taget/libvirt,nertpinx/libvirt,crobinso/libvirt,andreabolognani/libvirt,elmarco/libvirt,fabianfreyer/libvirt,crobinso/libvirt,shugaoye/libvirt,jardasgit/libvirt,olafhering/libvirt