Adds an explicit cast to unsigned long

Removes the warning related to format arguments