@@ -234,20 +234,19 @@ void DtaDev::puke()
234234 << " " << device_info.manufacturerName ;
235235 }
236236 cout << endl;
237-
237+ # define diBit ( name,field ) #name << " = " << ((device_info.field) ? " Y " : " N " )
238238 /* TPer */
239239 if (device_info.TPer ) {
240240 cout << " TPer function (" << HEXON (4 ) << FC_TPER << HEXOFF << " )" << endl;
241- cout << " ACKNAK = " << (device_info. TPer_ACKNACK ? " Y, " : " N, " )
242- << " ASYNC = " << (device_info. TPer_async ? " Y, " : " N. " )
243- << " BufferManagement = " << (device_info. TPer_bufferMgt ? " Y, " : " N , " )
244- << " comIDManagement = " << (device_info. TPer_comIDMgt ? " Y , " : " N, " )
245- << " Streaming = " << (device_info. TPer_streaming ? " Y , " : " N, " )
246- << " SYNC = " << (device_info. TPer_sync ? " Y " : " N " )
247- << endl;
241+ cout << " "
242+ << diBit (ACKNACK , TPer_ACKNACK ) << " , "
243+ << diBit (ASYNC , TPer_sync ) << " , "
244+ << diBit (BufferManagement , TPer_bufferMgt ) << " , "
245+ << diBit (comIDManagement , TPer_comIDMgt ) << " , "
246+ << diBit (Streaming , TPer_streaming ) << " , "
247+ << diBit (SYNC , TPer_sync ) << endl;
248248 }
249249 if (device_info.Locking ) {
250-
251250 cout << " Locking function (" << HEXON (4 ) << FC_LOCKING << HEXOFF << " )" << endl;
252251 cout << " Locked = " << (device_info.Locking_locked ? " Y, " : " N, " )
253252 << " LockingEnabled = " << (device_info.Locking_lockingEnabled ? " Y, " : " N, " )
0 commit comments