From: malaterre Date: Tue, 11 Jan 2005 22:05:22 +0000 (+0000) Subject: STYLE: print address in hex, for hexedit X-Git-Tag: Version1.0.bp~386 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=2d5ba78a922b9b6135cc90e963a5ed07240c0ab7;p=gdcm.git STYLE: print address in hex, for hexedit --- diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index f5320ec6..4c85abc8 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.cxx,v $ Language: C++ - Date: $Date: 2005/01/11 19:03:01 $ - Version: $Revision: 1.176 $ + Date: $Date: 2005/01/11 22:05:22 $ + Version: $Revision: 1.177 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -2534,10 +2534,7 @@ bool Document::ReadTag(uint16_t testGroup, uint16_t testElement) << std::hex << testGroup << "," << testElement << ")" << std::endl << " but instead we encountered tag (" << std::hex << itemTagGroup << "," << itemTagElement << ")" - << std::dec - << " at address: " << (unsigned int)currentPosition - << std::hex - << " 0x(" << (unsigned int)currentPosition << ")" + << " at address: " << " 0x(" << (unsigned int)currentPosition << ")" ) ; Fp->seekg(positionOnEntry, std::ios::beg); @@ -2576,7 +2573,7 @@ uint32_t Document::ReadTagLength(uint16_t testGroup, uint16_t testElement) { gdcmVerboseMacro( "Basic Item Length is: " << itemLength << std::endl - << " at address: " << (unsigned int)currentPosition); + << " at address: " << std::hex << (unsigned int)currentPosition); } return itemLength; }