CheckIo: Improved %d handling