Set sprintf integer format to long for SPIdread command