libc_noux & 64bit: fix printf format-warning

Normally for intptr_t the printf format PRIiPTR should be used. As Genode
printf doens't support this format we cast it to long int (intptr_t is int
for 32 bit and long int for 64 bit).

ref #989
This commit is contained in:
Martin Stein 2014-01-29 16:56:16 +01:00 committed by Norman Feske
parent c2af646ad8
commit cfd4310684

View File

@ -261,7 +261,7 @@ extern "C" uid_t geteuid()
void *sbrk(intptr_t increment)
{
if (verbose)
PDBG("not implemented %d", increment);
PDBG("not implemented %ld", (long int)increment);
errno = ENOMEM;
return reinterpret_cast<void *>(-1);
}