diff options
author | davidcunado-arm <david.cunado@arm.com> | 2017-05-19 10:54:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-19 10:54:23 +0100 |
commit | 727a68b8ef02f48316ef13903a63af2638f6bbd3 (patch) | |
tree | 733f8c8a8d13e6a0eb9c2a3c781c4bc079fe402f /docs/porting-guide.md | |
parent | 4fd4af26cb650d34876c058a7142c91233ba5475 (diff) | |
parent | 0da2fe7e29380f1b45286ae8a5a999547d250d33 (diff) |
Merge pull request #936 from antonio-nino-diaz-arm/an/assert-mem
Simplify assert() to reduce memory usage
Diffstat (limited to 'docs/porting-guide.md')
-rw-r--r-- | docs/porting-guide.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/porting-guide.md b/docs/porting-guide.md index 0189ec40..4d7a5ead 100644 --- a/docs/porting-guide.md +++ b/docs/porting-guide.md @@ -535,6 +535,17 @@ optionally be defined: PLAT_PARTITION_MAX_ENTRIES := 12 $(eval $(call add_define,PLAT_PARTITION_MAX_ENTRIES)) +The following constant is optional. It should be defined to override the default +behaviour of the `assert()` function (for example, to save memory). + +* **PLAT_LOG_LEVEL_ASSERT** + If `PLAT_LOG_LEVEL_ASSERT` is higher or equal than `LOG_LEVEL_VERBOSE`, + `assert()` prints the name of the file, the line number and the asserted + expression. Else if it is higher than `LOG_LEVEL_INFO`, it prints the file + name and the line number. Else if it is lower than `LOG_LEVEL_INFO`, it + doesn't print anything to the console. If `PLAT_LOG_LEVEL_ASSERT` isn't + defined, it defaults to `LOG_LEVEL`. + ### File : plat_macros.S [mandatory] |