You realize that your last fprintf has 6 arguments but only 4 formatter thingies.