X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftestclient%2Fmain.cpp;h=d170bfa44a791be7606384ef6f2bc8cbfb7d5c8b;hb=c4483d6f83059251d529c8be45510734877477be;hp=beafe8a0bcb281f57e14d4639ed0c7baee8b1b76;hpb=67f09a8d61f7330daeb98472bdf586e437c791f1;p=deb_libcec.git diff --git a/src/testclient/main.cpp b/src/testclient/main.cpp index beafe8a..d170bfa 100644 --- a/src/testclient/main.cpp +++ b/src/testclient/main.cpp @@ -857,7 +857,7 @@ bool ProcessCommandSCAN(ICECAdapter *parser, const string &command, string & UNU cec_power_status power = parser->GetDevicePowerStatus((cec_logical_address)iPtr); cec_osd_name osdName = parser->GetDeviceOSDName((cec_logical_address)iPtr); CStdString strAddr; - strAddr.Format("%04x", iPhysicalAddress); + strAddr.Format("%x.%x.%x.%x", (iPhysicalAddress >> 12) & 0xF, (iPhysicalAddress >> 8) & 0xF, (iPhysicalAddress >> 4) & 0xF, iPhysicalAddress & 0xF); cec_menu_language lang; lang.device = CECDEVICE_UNKNOWN; parser->GetDeviceMenuLanguage((cec_logical_address)iPtr, &lang);