#
864e173e |
| 11-Apr-2023 |
Pavithra Barithaya <pavithra.b@ibm.com> |
Add clang-tidy file
This commit implements a clang-tidy file, and makes some changes to get it to pass. Most changes are naming or mechanical in nature.
Tested: CI passed in docker.
Change-Id: I1f
Add clang-tidy file
This commit implements a clang-tidy file, and makes some changes to get it to pass. Most changes are naming or mechanical in nature.
Tested: CI passed in docker.
Change-Id: I1f9acf546542c839b8f9facb5b8beff37c0d5909 Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
show more ...
|
#
dd42c7fa |
| 11-Aug-2022 |
Pavithra Barithaya <pavithra.b@ibm.com> |
Minor changes in the code
- fix a typo in README and wrap file. - refactoring lg2 errorlog usage.
Change-Id: I3b55b86a505405f02fe70429a266c467b87b17ff Signed-off-by: Pavithra Barithaya <pavithra.b@
Minor changes in the code
- fix a typo in README and wrap file. - refactoring lg2 errorlog usage.
Change-Id: I3b55b86a505405f02fe70429a266c467b87b17ff Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
show more ...
|
#
dc746c0b |
| 01-Sep-2022 |
George Liu <liuxiwei@inspur.com> |
Move the getSubTree method to utils
Since the getSubTree method is a generic method that users may use anywhere, It is better to move this method to utils.
Signed-off-by: George Liu <liuxiwei@inspu
Move the getSubTree method to utils
Since the getSubTree method is a generic method that users may use anywhere, It is better to move this method to utils.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ib6e1367b9885dac38a7ba6b63329977436e70c26
show more ...
|
#
38679266 |
| 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I9cedddf4dc9b224ecbc2f68e6b00c0ab1885a826
show more ...
|
#
261525d1 |
| 01-Jul-2022 |
George Liu <liuxiwei@inspur.com> |
Fix cppcheck warnings
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ie007785a9afd036e964ba3457fdeb2e6097c9223
|
#
947b5346 |
| 01-Jul-2022 |
George Liu <liuxiwei@inspur.com> |
logging: switch to lg2
It is recommended to use `phosphor::lg2` to format log, and the correct `CODE_LINE` and `CODE_FUNC` values can be used in log tracking.
Signed-off-by: George Liu <liuxiwei@in
logging: switch to lg2
It is recommended to use `phosphor::lg2` to format log, and the correct `CODE_LINE` and `CODE_FUNC` values can be used in log tracking.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ic8a400451f96cde5bdb9f47094806bd31adce7d9
show more ...
|
#
295b96b7 |
| 02-Sep-2021 |
Patrick Williams <patrick@stwcx.xyz> |
exception: switch to public sdbus exception
SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type.
Signed-off-
exception: switch to public sdbus exception
SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Idda02eeec799a0d1b8eef474988e7e4c8d4dc65f
show more ...
|
#
3c2f4496 |
| 11-Apr-2020 |
George Liu <liuxiwei@inspur.com> |
Remove TimeOwner Feature
The TimeOwner feature is confusing from feedback from the community and hence removing the feature. Remove the TimeOwner feature in the phosphor-time-manager repo and needed
Remove TimeOwner Feature
The TimeOwner feature is confusing from feedback from the community and hence removing the feature. Remove the TimeOwner feature in the phosphor-time-manager repo and needed settings objects.
Tested: Manually set the date time on the web and successfully update the date time of BMC (eg: 2020/01/01 08:07:50). busctrl get-property xyz.openbmc_project.Time.Manager /xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed t 1577837156385836
Refer: https://lists.ozlabs.org/pipermail/openbmc/2020-April/021409.html
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Id47eb0a03e0e94eeff29d2b77dccefb89cded7b8
show more ...
|
#
ab4cc6a5 |
| 14-Sep-2018 |
Gunnar Mills <gmills@us.ibm.com> |
clang-format: Update to match docs repo
Update the .clang-format file and run clang-format-6.0. This .clang-format matches the example one in https://github.com/openbmc/docs/blob/master/cpp-style-an
clang-format: Update to match docs repo
Update the .clang-format file and run clang-format-6.0. This .clang-format matches the example one in https://github.com/openbmc/docs/blob/master/cpp-style-and-conventions.md#clang-formatting
Change-Id: Ic2c462525eb27b8295c2b298871e04268d93faf2 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
#
86c83f38 |
| 13-Jul-2018 |
Lei YU <mine260309@gmail.com> |
Throw runtime_error instead of MethodEror
As suggested, when error occurs in getService/getProperty, it means runtime error, so the code is better to throw std::runtime_error instead of a sdbusplus
Throw runtime_error instead of MethodEror
As suggested, when error occurs in getService/getProperty, it means runtime error, so the code is better to throw std::runtime_error instead of a sdbusplus exception.
Tested: Build the code correctly.
Change-Id: Iddca72ac1fdd07ed6b731b6509eebbfa9d2579d3 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
7aa715b2 |
| 09-May-2018 |
Ed Tanous <ed.tanous@intel.com> |
Follow secure coding standards for interactions with the mapper
This patchset updates phosphor-time-manager to follow secure coding guidelines when interacting with the mapper. Specifically, it rep
Follow secure coding standards for interactions with the mapper
This patchset updates phosphor-time-manager to follow secure coding guidelines when interacting with the mapper. Specifically, it replaces uses of std::map with std::vector<std::pair<>>, which should net some small performance wins. This change also causes time-manager to properly enumerate each response.
Tested-By: Built with changeset, and verified via d-feet that /xyz/openbmc_project/time/host and /xyz/openbmc_project/time/bmc were present, and verified reading of the "Elapsed" parameter returned the expected time result.
Change-Id: If4329d533641595cf0b50c4e50e2dda69b299f52 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
show more ...
|
#
ad14354f |
| 25-Jul-2017 |
Lei YU <mine260309@gmail.com> |
Use time mode owner enums in dbus interface
Dbus interface defines time mode owners in xyz::openbmc_project::Time. Use the enums from the interface instead of repo defined enums and use the generate
Use time mode owner enums in dbus interface
Dbus interface defines time mode owners in xyz::openbmc_project::Time. Use the enums from the interface instead of repo defined enums and use the generated code to do convertions between strings and enums.
Update unit tests accordingly.
Change-Id: Ic304aa3b4137375d208bb1702e0f64df512fc5a0 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
86d80419 |
| 12-Jul-2017 |
Lei YU <mine260309@gmail.com> |
Use elog to throw exceptions
Use elog to throw exceptions and update unit tests
Change-Id: I338ded4403b3b559a84da311eda5ee15e712569a Signed-off-by: Lei YU <mine260309@gmail.com>
|
#
dd8e9e40 |
| 19-Apr-2017 |
Lei YU <mine260309@gmail.com> |
Use mapper to find service name
Use objectMapper to find the service name instead of using hard-coded service name.
Change-Id: If436c65d9a9a4942eaf30ea20bc7b85e3e7694c1 Signed-off-by: Lei YU <mine2
Use mapper to find service name
Use objectMapper to find the service name instead of using hard-coded service name.
Change-Id: If436c65d9a9a4942eaf30ea20bc7b85e3e7694c1 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
ddd54428 |
| 18-Apr-2017 |
Lei YU <mine260309@gmail.com> |
Implement mode/owner and string conversions
Move Manager::convertToMode() to utils::strToMode(); Move Manager::convertToOwner() to utils::strToOwner(); Add utils::modeToStr() and utils::ownerToStr()
Implement mode/owner and string conversions
Move Manager::convertToMode() to utils::strToMode(); Move Manager::convertToOwner() to utils::strToOwner(); Add utils::modeToStr() and utils::ownerToStr(); Adjust and add unit tests.
Change-Id: Ied35d0e732c477017e1b2db1a3464b0425b12387 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|