From b9e6036482f1033a79d9907d7feca6e26ca2bca8 Mon Sep 17 00:00:00 2001 From: Eran Date: Tue, 3 Oct 2023 08:27:13 +0300 Subject: [PATCH] sample usage in d500 --- src/ds/d500/d500-factory.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ds/d500/d500-factory.cpp b/src/ds/d500/d500-factory.cpp index e090c90372..4e352ca081 100644 --- a/src/ds/d500/d500-factory.cpp +++ b/src/ds/d500/d500-factory.cpp @@ -26,6 +26,10 @@ #include "firmware_logger_device.h" #include "device-calibration.h" +#include +using rsutils::string::hexdump; + + namespace librealsense { @@ -115,8 +119,7 @@ class d555e_device return std::make_shared< d555e_device >( dev_info ); default: - throw std::runtime_error( rsutils::string::from() << "Unsupported D500 model! 0x" << std::hex - << std::setw( 4 ) << std::setfill( '0' ) << (int)pid ); + throw std::runtime_error( rsutils::string::from() << "unsupported D500 PID 0x" << hexdump( pid ) ); } }