dbus master failing due to wrong printf format specifier

Christian Dywan christian at lanedo.com
Thu Jun 10 06:25:20 PDT 2010


Am Thu, 10 Jun 2010 14:39:37 +0200
schrieb Ralf Habacker <ralf.habacker at freenet.de>:

> Christian Dywan schrieb:
> > Hejsan,
> >
> > I have been unable to build dbus master for a while and understood
> > there was a fix somewhere on the mailing list. Seeing that it wasn't
> > fixed yet, I'm providing a patch that allows me to build.
> >
> >   CC     libdbus_internal_la-dbus-sysdeps-util-unix.lo
> > cc1: warnings being treated as errors
> > dbus-sysdeps-util-unix.c: In function
> >   ‘_dbus_write_pid_to_file_and_pipe’:
> > dbus-sysdeps-util-unix.c:254:7: error: format ‘%d’ expects type
> > ‘int’, but argument 5 has type ‘intptr_t’
> >
> > The above is the exact error. This is on a native x86_64 machine.
> >   
> I can reproduce this problem - patch works as expected and has been 
> committed.
> 
> BTW: Can you provide next time a patch using 'git format-patch' ?
> This is the prefered way for dbus patches and could be committed
> directly into the local git checkout with 'git am'.

Hey Ralf,

thanks for committing. I will use git format-patch next time. I used
git show which apparently produces a infinitesimally different output.

-- 
ciao,
    Christian


More information about the dbus mailing list