<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/common/log.c, branch v2021.01</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/common/log.c?h=v2021.01</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/common/log.c?h=v2021.01'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2020-11-06T01:51:34Z</updated>
<entry>
<title>x86: zimage: Add a little more logging</title>
<updated>2020-11-06T01:51:34Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2020-11-04T16:59:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=b73d61a5565c3ab9e207a288186049806ce13e1b'/>
<id>urn:sha1:b73d61a5565c3ab9e207a288186049806ce13e1b</id>
<content type='text'>
Add logging for each part of the boot process, using a new

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Igor Opaniuk &lt;igor.opaniuk@toradex.com&gt;
</content>
</entry>
<entry>
<title>log: Add filter flag to match greater than a log level</title>
<updated>2020-10-30T14:55:26Z</updated>
<author>
<name>Sean Anderson</name>
<email>seanga2@gmail.com</email>
</author>
<published>2020-10-27T23:55:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=40455a6915e1f08e74a71d5c859ef93b6d815899'/>
<id>urn:sha1:40455a6915e1f08e74a71d5c859ef93b6d815899</id>
<content type='text'>
This is the complement of the existing behavior to match only messages with
a log level less than a threshold. This is primarily useful in conjunction
with LOGFF_DENY.

Signed-off-by: Sean Anderson &lt;seanga2@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>log: Add filter flag to deny on match</title>
<updated>2020-10-30T14:55:26Z</updated>
<author>
<name>Sean Anderson</name>
<email>seanga2@gmail.com</email>
</author>
<published>2020-10-27T23:55:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fe3b1a2d21fb35ac212066dd74b7cc4b6bfbccc9'/>
<id>urn:sha1:fe3b1a2d21fb35ac212066dd74b7cc4b6bfbccc9</id>
<content type='text'>
Without this flag, log filters can only explicitly accept messages.
Allowing denial makes it easier to filter certain subsystems. Unlike
allow-ing filters, deny-ing filters are added to the beginning of the
filter list. This should do the Right Thing most of the time, but it's
less-universal than allowing filters to be inserted anywhere. If this
becomes a problem, then perhaps log_filter_add* should take a filter number
to insert before/after.

Signed-off-by: Sean Anderson &lt;seanga2@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>log: Add function to create a filter with flags</title>
<updated>2020-10-30T14:55:26Z</updated>
<author>
<name>Sean Anderson</name>
<email>seanga2@gmail.com</email>
</author>
<published>2020-10-27T23:55:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a02f84ee9c6f42137671b74ec3bb9d159b10b7ee'/>
<id>urn:sha1:a02f84ee9c6f42137671b74ec3bb9d159b10b7ee</id>
<content type='text'>
This function exposes a way to specify flags when creating a filter.

Signed-off-by: Sean Anderson &lt;seanga2@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>log: Expose some helper functions</title>
<updated>2020-10-30T14:55:26Z</updated>
<author>
<name>Sean Anderson</name>
<email>seanga2@gmail.com</email>
</author>
<published>2020-10-27T23:55:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=3102c1d2c21762889e90ec68fd0b3ce5209528a6'/>
<id>urn:sha1:3102c1d2c21762889e90ec68fd0b3ce5209528a6</id>
<content type='text'>
These functions are required by "cmd: log: Add commands to manipulate
filters" and "test: Add a test for log filter-*".

Signed-off-by: Sean Anderson &lt;seanga2@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>log: Add additional const qualifier to arrays</title>
<updated>2020-10-30T14:55:26Z</updated>
<author>
<name>Sean Anderson</name>
<email>seanga2@gmail.com</email>
</author>
<published>2020-10-27T23:55:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=43381401d541c2d3245e4f210f962494b1533914'/>
<id>urn:sha1:43381401d541c2d3245e4f210f962494b1533914</id>
<content type='text'>
Both these arrays and their members are const. Fixes checkpatch complaint.

Signed-off-by: Sean Anderson &lt;seanga2@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>log: Fix missing negation of ENOMEM</title>
<updated>2020-10-30T14:54:38Z</updated>
<author>
<name>Sean Anderson</name>
<email>seanga2@gmail.com</email>
</author>
<published>2020-10-27T23:55:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=69529f9840f5de01a5865d2b55cd741713676956'/>
<id>urn:sha1:69529f9840f5de01a5865d2b55cd741713676956</id>
<content type='text'>
Errors returned should be negative.

Fixes: 45fac9fc18 ("log: Correct missing free() on error in log_add_filter()")

Signed-off-by: Sean Anderson &lt;seanga2@gmail.com&gt;
Reviewed-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
</content>
</entry>
<entry>
<title>log: correct and check array size of log categories</title>
<updated>2020-10-27T21:04:15Z</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>xypron.glpk@gmx.de</email>
</author>
<published>2020-10-23T11:00:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2a0cbf3bca372dcbc79048d475c817d4e462069e'/>
<id>urn:sha1:2a0cbf3bca372dcbc79048d475c817d4e462069e</id>
<content type='text'>
The log command has led to NULL dereferences if an unknown category name
name was used due to missing entries in the list of category names.

Add compile time checks for the array sizes of log_cat_name and
log_lvl_name to avoid future mishaps.

Signed-off-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>log: allow for message continuation</title>
<updated>2020-10-27T17:50:53Z</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>xypron.glpk@gmx.de</email>
</author>
<published>2020-10-17T12:31:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d094a0734cee439fc8483118694079c85b1cc3db'/>
<id>urn:sha1:d094a0734cee439fc8483118694079c85b1cc3db</id>
<content type='text'>
Some drivers use macro pr_cont() for continuing a message sent via printk.
Hence if we want to convert printk messaging to using the logging system,
we must support continuation of log messages too.

As pr_cont() does not provide a message level we need a means of
remembering the last log level.

With the patch a pseudo log level LOGL_CONT as well as a pseudo log
category LOGC_CONT are introduced. Using these results in the application
of the same log level and category as in the previous log message.

Signed-off-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>log: move processing_msg to global data</title>
<updated>2020-10-27T17:50:53Z</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>xypron.glpk@gmx.de</email>
</author>
<published>2020-10-17T12:31:57Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=993a06b6144d54ae2ad83cc25c18acb9d1720ad0'/>
<id>urn:sha1:993a06b6144d54ae2ad83cc25c18acb9d1720ad0</id>
<content type='text'>
Replace the static variable processing_msg by a field in the global data.
Make the field bool at it can only be true or false.

Signed-off-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
</feed>
