'%u' causes warning messages on 64bit systems.

From printf manpage:
z - a following integer conversion corresponds to a size_t or ssize_t argument.