fix compilation errors

fixes JIRA https://

Signed-off-by: Harshit Aghera <haghera@nvidia.com>
diff --git a/common/utils.cpp b/common/utils.cpp
index c99ae63..77dbf14 100644
--- a/common/utils.cpp
+++ b/common/utils.cpp
@@ -91,8 +91,10 @@
 {
     if (!buffer.empty())
     {
-        constexpr size_t headerSize = strlen("EID: 1d, TAG: 03, Tx: ");
-        constexpr size_t hexWithSpaceSize = strlen("89 ");
+        // Length of "EID: 1d, TAG: 03, Tx: "
+        constexpr size_t headerSize = 22;
+        // Length of "89 "
+        constexpr size_t hexWithSpaceSize = 3;
         std::string output(headerSize + buffer.size() * hexWithSpaceSize, '\0');
         sprintf(output.data(), "EID: %02x, TAG: %02x, %s: ", eid, tag,
                 isTx ? "Tx" : "Rx");
diff --git a/nsmd/nsmDevice.hpp b/nsmd/nsmDevice.hpp
index caf1dcf..aa496d9 100644
--- a/nsmd/nsmDevice.hpp
+++ b/nsmd/nsmDevice.hpp
@@ -147,7 +147,7 @@
      */
     template <typename SensorType>
     void addStaticSensor(SensorType sensor)
-        [[deprecated("Use addSensor(sensor, PollingType::Static) instead")]]
+    //    [[deprecated("Use addSensor(sensor, PollingType::Static) instead")]]
     {
         addSensor(sensor, PollingType::Static);
     }
@@ -164,7 +164,7 @@
      */
     template <typename SensorType>
     void addSensor(SensorType sensor, bool priority, bool isLongRunning = false)
-        [[deprecated("Use addSensor(sensor, pollingType) instead")]]
+    //    [[deprecated("Use addSensor(sensor, pollingType) instead")]]
     {
         addSensor(sensor, isLongRunning ? PollingType::LongRunning
                                         : (priority ? PollingType::Priority