open-power / guard Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I think we did not handle the given path elements size vs max allowed path element size
static const int maxPathElements = 10;
made the above changes to fix the compilation error but as per ramesh we are missing "given path elements size vs max allowed path element size" need to relook
guard -c physical:sys-0/node-0/dimm-0
Already guard record is available in the GUARD partition
Exception: Guard record is already exist
Above log in coming on console not getting directed to journal.
Instead of making multiple exception creating a struct
struct error_info
{
ERR_TYPE err_type;
const char msg;
void const private_data;
};
In this user can distinguish based on err_type. This will avoid creating multiple exceptions.
OpenBMC moved up to a newer compiler and it seems to finding an issue in the existing code:
14:23:19 | In file included from ../git/libguard/devtree/phal_devtree.hpp:20,
14:23:19 | from ../git/libguard/devtree/phal_devtree.cpp:2:
14:23:19 | ../git/libguard/guard_common.hpp: In constructor 'openpower::guard::EntityPath::EntityPath(const uint8_t*)':
14:23:19 | ../git/libguard/guard_common.hpp:146:31: error: comparing the result of pointer addition '(rawData + ((sizetype)j))' and NULL [-Werror=address]
14:23:19 | 146 | if ((rawData + j) == nullptr || (rawData + j + 1) == nullptr)
14:23:19 | | ~~~~~~~~~~~~~~^~~~~~~~~~
14:23:19 | ../git/libguard/guard_common.hpp:146:63: error: comparing the result of pointer addition '(rawData + (((sizetype)j) + 1))' and NULL [-Werror=address]
14:23:19 | 146 | if ((rawData + j) == nullptr || (rawData + j + 1) == nullptr)
14:23:19 | | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~
14:23:19 | cc1plus: all warnings being treated as errors
Full build out at https://jenkins.openbmc.org/job/ci-openbmc/11061/distro=ubuntu,label=docker-builder,target=p10bmc/consoleFull
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.