From 54f3109dfefd8c56bc705edad692d7204ae4f47f Mon Sep 17 00:00:00 2001 From: KarthikGengan Date: Thu, 23 Jan 2025 14:53:43 -0800 Subject: [PATCH] platform_manager:updated the relavant debug context (#322) Summary: # Description: During Watchdog sysfsPath validation, debug logs incorrectly displayed CharDevPath. This has been corrected to reflect the actual Sysfspath. # Motivation: To improve code clarity. # Testcase: platform_manager binary built and loaded successfully. Pull Request resolved: https://github.com/facebook/fboss/pull/322 Reviewed By: kimdo8736 Differential Revision: D68581534 Pulled By: mikechoifb fbshipit-source-id: 165fe558bb12b541e21ec980781328a2d3bbe162 --- fboss/platform/platform_manager/Utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fboss/platform/platform_manager/Utils.cpp b/fboss/platform/platform_manager/Utils.cpp index c749d0f7dd83a..e740791584abd 100644 --- a/fboss/platform/platform_manager/Utils.cpp +++ b/fboss/platform/platform_manager/Utils.cpp @@ -80,7 +80,7 @@ std::string Utils::resolveWatchdogCharDevPath(const std::string& sysfsPath) { if (!Utils().checkDeviceReadiness( [&]() -> bool { return fs::exists(watchdogDir); }, fmt::format( - "Watchdog CharDevPath is not created. Waited for at most {}s", + "Watchdog SysfsPath is not created. Waited for at most {}s", kWatchdogDevCreationWaitSecs.count()), kWatchdogDevCreationWaitSecs)) { throw std::runtime_error(fmt::format(