Skip to content

Commit

Permalink
platform_manager:updated the relavant debug context (#322)
Browse files Browse the repository at this point in the history
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: #322

Reviewed By: kimdo8736

Differential Revision: D68581534

Pulled By: mikechoifb

fbshipit-source-id: 165fe558bb12b541e21ec980781328a2d3bbe162
  • Loading branch information
KarthikGengan authored and facebook-github-bot committed Jan 23, 2025
1 parent 9d2f99d commit 54f3109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fboss/platform/platform_manager/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 54f3109

Please sign in to comment.