Opened 11 years ago

Closed 11 years ago

#1115 closed defect (fixed)

Debug display of unsigned elements

Reported by: peterderivaz Owned by:
Priority: trivial Milestone: HM-11.1
Component: HM Version: HM-11.0
Keywords: Cc: fbossen, ksuehring, davidf, jct-vc@…


In Lib\TLibDecoder\SyntaxElementParser.cpp there are some useful functions that display debugging information about parsed syntax elements.

However, sometimes large unsigned elements can be displayed as being negative. I think this is because the fprintf format string uses %d instead of %u. e.g. in Void SyntaxElementParser::xReadUvlcTr (UInt& rValue, const Char *pSymbolName) the code reads

fprintf( g_hTrace, "%-50s ue(v) : %d\n", pSymbolName, rValue );

I think it would be a little nicer if this were changed to

fprintf( g_hTrace, "%-50s ue(v) : %u\n", pSymbolName, rValue );

Change History (2)

comment:1 Changed 11 years ago by DefaultCC Plugin

  • Cc fbossen ksuehring davidf jct-vc@… added

comment:2 Changed 11 years ago by fbossen

  • Milestone set to HM-11.1
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r3523

Note: See TracTickets for help on using tickets.

This list contains all users that will be notified about changes made to this ticket.

These roles will be notified: Reporter, Owner, Subscriber, Participant

  • David Flynn(Subscriber)
  • Frank Bossen(Subscriber, Participant)
  • jct-vc@…(Subscriber)
  • karl.sharman@…(Always)
  • Karsten Suehring(Subscriber, Always)
  • Peter de Rivaz(Reporter)