Comments (4)
This won't directly work with the current libmetal logging API. The problem is that the Zephyr syslog APIs are macros (SYS_LOG_ERR()
/SYS_LOG_WRN
/etc), so we can't call them correctly from the libmetal log handler.
However, we could call the SYS_LOG_BACKEND_FN
instead of printk
from the log handler. We won't get color support or the consistent logging format provided by the SYS_LOG_
macros, but we can support custom Zephyr logging functions (syslog_hook
).
from libmetal.
I'll add a comment to zephyrproject-rtos/zephyr#6186 to improve the logging API in zephyr to allow us to connect this more directly.
from libmetal.
@skordal can we use or tie into LOG_NO_COLOR()?
from libmetal.
That won't work either, we will need a function that can take a va_list
argument, since we need to forward the arguments passed to the libmetal log handler function.
(My suggestion about using the SYS_LOG_BACKEND_FN actually won't work either, for the same reason).
from libmetal.
Related Issues (20)
- Multiple shared libraries using libmetal HOT 7
- where is xsdk/r5_0_bsp/psu_cortexr5_0/include ? HOT 2
- lto1: fatal error: bytecode stream generated with LTO version 8.1 instead of the expected 4.0 HOT 3
- replace master/slave terminology
- Add C++ tests in CI HOT 1
- RZG2L OpenAmp Renesas HOT 1
- ERANGE usage HOT 3
- [Feature request] Open device read-only HOT 5
- Read/write to multiple IO region doesn't seem to work HOT 7
- main branch still using zepher/kernel.h HOT 1
- Checkpatch improvement complain on check report
- Move examples and demos to openamp-system-reference repository HOT 4
- Restructure content in README.md HOT 1
- shmem-provider header file HOT 3
- PATH_MAX undeclared HOT 2
- Remove XLNX_PLATFORM Flag from libmetal HOT 3
- libmetal is too big/complex for normal RTOS usage HOT 1
- libmetal: xlnx: Move Xilinx specific code out of libmetal HOT 1
- CI: Pin to specific version of Zephyr SDK in default PRs HOT 3
- CI : libmetal continuous Integration report test error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libmetal.