Please use Fprintf and %v for err