Add utils.cpp file

In the IPMI handling logic, there are many checks to determine if DBus
communication is successful. If not, it logs an error and returns an
error code. This logic is now placed in utils to avoid code duplication.

Change-Id: Ie14ba31130fa5476ffc1840f076aa139879f4ff6
Signed-off-by: John Wang <wangzhiqiang02@ieisystem.com>
3 files changed