Fix one more format error found by gcc 5.3.1

This commit is contained in:
Johanna Amann 2016-08-15 16:54:22 -07:00
parent 0d706bcccd
commit ed3447acaa

View file

@ -124,7 +124,7 @@ bool JSON::Describe(ODesc* desc, Value* val, const string& name) const
if ( ! gmtime_r(&the_time, &t) || if ( ! gmtime_r(&the_time, &t) ||
! strftime(buffer, sizeof(buffer), "%Y-%m-%dT%H:%M:%S", &t) ) ! strftime(buffer, sizeof(buffer), "%Y-%m-%dT%H:%M:%S", &t) )
{ {
GetThread()->Error(GetThread()->Fmt("json formatter: failure getting time: (%" PRIu64 ")", val->val.double_val)); GetThread()->Error(GetThread()->Fmt("json formatter: failure getting time: (%lf)", val->val.double_val));
// This was a failure, doesn't really matter what gets put here // This was a failure, doesn't really matter what gets put here
// but it should probably stand out... // but it should probably stand out...
desc->Add("2000-01-01T00:00:00.000000"); desc->Add("2000-01-01T00:00:00.000000");