Changed %s to %ld in debug print