Fixed restartCause interface and object path

- Fixed interface and object path according to phosphor-dbus-interface.
- Format file with clang-format-17.

Change-Id: I5d6265024646f2acaa0758a7aefe49adf67f67a8
Signed-off-by: Orit Kashany <okashany@nvidia.com>
diff --git a/.clang-format b/.clang-format
index d43e884..38fa1a9 100644
--- a/.clang-format
+++ b/.clang-format
@@ -6,7 +6,7 @@
 AlignConsecutiveAssignments: false
 AlignConsecutiveDeclarations: false
 AlignEscapedNewlines: Right
-AlignOperands:  Align
+AlignOperands: Align
 AlignTrailingComments:
   Kind: Always
   OverEmptyLines: 1
diff --git a/chassishandler.cpp b/chassishandler.cpp
index 8c7bddc..e089083 100644
--- a/chassishandler.cpp
+++ b/chassishandler.cpp
@@ -1295,10 +1295,8 @@
  */
 static std::optional<uint4_t> getRestartCause(ipmi::Context::ptr ctx)
 {
-    constexpr const char* restartCausePath =
-        "/xyz/openbmc_project/control/host0/restart_cause";
-    constexpr const char* restartCauseIntf =
-        "xyz.openbmc_project.Control.Host.RestartCause";
+    constexpr const char* restartCausePath = "/xyz/openbmc_project/state/host0";
+    constexpr const char* restartCauseIntf = "xyz.openbmc_project.State.Host";
 
     std::string service;
     boost::system::error_code ec = ipmi::getService(ctx, restartCauseIntf,