patch: fix various warnings format '%d' expects argument of type 'int', but argument 4 has type 'char *'