Skip to content

Commit

Permalink
Fix some format strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
diyessi committed Aug 5, 2015
1 parent 10c4802 commit 38f507d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions DataReader/BinaryReader/BinaryReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void BinaryReader<ElemType>::DisplayProperties()
for (auto pair : m_sections)
{
Section* section = pair.second;
fprintf(stderr,"Section: %ls, Elements: %lld, ElementsPerRecord: %lld, ElementSize: %lld\n", pair.first.c_str(), section->GetElementCount(), section->GetElementsPerRecord(), section->GetElementSize());
fprintf(stderr,"Section: %ls, Elements: %zd, ElementsPerRecord: %zd, ElementSize: %zd\n", pair.first.c_str(), section->GetElementCount(), section->GetElementsPerRecord(), section->GetElementSize());
if (section->GetSectionType() == sectionTypeStats)
{
vector<NumericStatistics> stats;
Expand Down Expand Up @@ -434,4 +434,4 @@ bool BinaryReader<ElemType>::DataEnd(EndDataType endDataType)
// instantiate all the combinations we expect to be used
template class BinaryReader<double>;
template class BinaryReader<float>;
}}}
}}}
4 changes: 2 additions & 2 deletions DataReader/LMSequenceReader/SequenceParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ class SequenceParser
long TickDelta = TickStop - TickStart;

if (m_traceLevel > 2)
fprintf(stderr, "\n%l ms, %d numbers parsed\n\n", TickDelta, m_totalNumbersConverted );
fprintf(stderr, "\n%ld ms, %d numbers parsed\n\n", TickDelta, m_totalNumbersConverted );
return lineCount;
}

Expand Down Expand Up @@ -608,7 +608,7 @@ class LMSequenceParser : public SequenceParser<NumType, LabelType>
long TickDelta = TickStop - TickStart;

if (m_traceLevel > 2)
fprintf(stderr, "\n%l ms, %d numbers parsed\n\n", TickDelta, m_totalNumbersConverted );
fprintf(stderr, "\n%ld ms, %d numbers parsed\n\n", TickDelta, m_totalNumbersConverted );
return lineCount;
}

Expand Down
6 changes: 3 additions & 3 deletions DataReader/LMSequenceReader/SequenceReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ void SequenceReader<ElemType>::SetupEpoch()
if (m_totalSamples == 0)
{
if (m_traceLevel > 0)
fprintf(stderr, "starting at epoch %d parsing all data to determine record count\n", m_epoch);
fprintf(stderr, "starting at epoch %zd parsing all data to determine record count\n", m_epoch);
// choose a large number to read
m_parser.SetFilePosition(0);
m_mbStartSample = 0;
Expand All @@ -805,7 +805,7 @@ void SequenceReader<ElemType>::SetupEpoch()
m_seqIndex = m_sequence.size();
}
if (m_traceLevel > 0)
fprintf(stderr, "\n %lld records found\n", m_totalSamples);
fprintf(stderr, "\n %zd records found\n", m_totalSamples);
}
m_seqIndex = 0;

Expand Down Expand Up @@ -2129,4 +2129,4 @@ int BatchSequenceReader<ElemType>::GetSentenceEndIdFromOutputLabel()

template class BatchSequenceReader<double>;
template class BatchSequenceReader<float>;
}}}
}}}

0 comments on commit 38f507d

Please sign in to comment.