Re: [PATCH] use %p for pointers




%p will do no such thing in the kernel. As for the difference... %x
might happen to work on some architectures (where sizeof(void
*)==sizeof(int)),
but it's not portable _and_ not right. %p is proper C for that...

Ah I see your point, but then again, %lx could have been used. Unless
there is some arch where sizeof(long) != sizeof(void *).

It's really too bad gcc bitches about %#p, because that's arguably The Right
Thing.

ack. Make a bug report perhaps?

-`J'
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: VGER does gradual SPF activation (FAQ matter)
    ... people who just want to shoot off a bug report or similar but who do ... not want to be subscribed (nor can be botherd to go through the ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Should be [PATCH -mm] -- Re: [PATCH -rt] panic on SLIM + selinux
    ... This could be a bug report cause I bet there's a better way to make these mutually ... The Simple Linux Integrity Module implements a modified low water-mark ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: [PATCH] use unlikely() for current_kernel_time() loop
    ... Does the option not also make assembly less readable on other architectures? ... (GCC documentation doesn't really say that.) ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: [RFC][PATCH 3/9] actual generic PAGE_SIZE infrastructure
    ... Several architectures have some form of this, ... arm uses ULfor this and I think this is much more readable than ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • [PATCH] hugetlb: Fix clear_user_highpage arguments
    ... This allows architectures with virtually indexed caches a few ... That sort of trick falls over in painful ways if the ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)