# HG changeset patch # User mas01mc # Date 1217607711 0 # Node ID 8764d114ce80b306a858f43853b07dc1fbef89af # Parent f08c66ae8207ed2baf202c5325cf016b36676566 added more informative status display for flags diff -r f08c66ae8207 -r 8764d114ce80 audioDB.cpp --- a/audioDB.cpp Fri Aug 01 15:48:40 2008 +0000 +++ b/audioDB.cpp Fri Aug 01 16:21:51 2008 +0000 @@ -511,8 +511,10 @@ std::cout << "total bytes:" << dbH->length << " (" << (100.0*dbH->length)/(dbH->timesTableOffset-dbH->dataOffset) << "%)" << std::endl; std::cout << "bytes available:" << dbH->timesTableOffset-(dbH->dataOffset+dbH->length) << " (" << (100.0*(dbH->timesTableOffset-(dbH->dataOffset+dbH->length)))/(dbH->timesTableOffset-dbH->dataOffset) << "%)" << std::endl; - std::cout << "flags:" << dbH->flags << std::endl; - + std::cout << "flags:" << " l2norm[" << DISPLAY_FLAG(dbH->flags&O2_FLAG_L2NORM) + << "] minmax[" << DISPLAY_FLAG(dbH->flags&O2_FLAG_MINMAX) + << "] power[" << DISPLAY_FLAG(dbH->flags&O2_FLAG_POWER) + << "] times[" << DISPLAY_FLAG(dbH->flags&O2_FLAG_TIMES) << "]" << endl; std::cout << "null count: " << nullCount << " small sequence count " << dudCount-nullCount << std::endl; } else { adbStatusResponse->result.numFiles = dbH->numFiles; diff -r f08c66ae8207 -r 8764d114ce80 audioDB.h --- a/audioDB.h Fri Aug 01 15:48:40 2008 +0000 +++ b/audioDB.h Fri Aug 01 16:21:51 2008 +0000 @@ -97,6 +97,7 @@ #define O2_FLAG_MINMAX (0x2U) #define O2_FLAG_POWER (0x4U) #define O2_FLAG_TIMES (0x20U) +#define DISPLAY_FLAG(x) (x?"on":"off") // Query types #define O2_POINT_QUERY (0x4U)