Fix compilation warnings

Fix warning: format %lx expects argument of type long unsigned int, but argument 2 has type void* [-Wformat=]