fix printf errors for 32 platforms.