<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/u-boot/include/log.h, branch master</title>
<subtitle>Broadcom-s U-Boot</subtitle>
<id>https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/'/>
<updated>2019-02-20T07:21:44Z</updated>
<entry>
<title>log: Allow #define LOG_DEBUG to enable logging in a file</title>
<updated>2019-02-20T07:21:44Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2019-02-17T03:24:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=f9811e8575eb42e75c615ba9b44f0481cdb78330'/>
<id>urn:sha1:f9811e8575eb42e75c615ba9b44f0481cdb78330</id>
<content type='text'>
At present it is possible to '#define DEBUG' at the top of a file which
causes all debug() statements in that file to become active. There is
currently no equivalent with logging, but this is a useful function.

Add a LOG_DEBUG define along with documentation.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
</content>
</entry>
<entry>
<title>log: Fix up Kconfig log level names</title>
<updated>2019-02-20T07:21:44Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2019-02-17T03:24:34Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=6fc7e93896e980d8eebf9cff46501f495a1fc361'/>
<id>urn:sha1:6fc7e93896e980d8eebf9cff46501f495a1fc361</id>
<content type='text'>
The log level numbers in the Kconfig are not actually correct. Fix them
and also add a missing space in the header-file comment.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
</content>
</entry>
<entry>
<title>log: Check printf() arguments</title>
<updated>2019-01-15T00:47:13Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2019-01-07T23:44:19Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=ed4e933d13c7242c643e4a535edf4d75c5322f94'/>
<id>urn:sha1:ed4e933d13c7242c643e4a535edf4d75c5322f94</id>
<content type='text'>
At present logging does not check printf() arguments. Now that all users
have been corrected, enable this to prevent further problems.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>malloc_simple: Add logging of allocations</title>
<updated>2018-11-29T16:30:05Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2018-11-18T15:14:26Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=7cbd2d2e327d2971d186c41cbfdc33b7e6ae6afc'/>
<id>urn:sha1:7cbd2d2e327d2971d186c41cbfdc33b7e6ae6afc</id>
<content type='text'>
It is sometimes useful to see what memory is being allocated early during
boot. Add logging to support this, using a new LOGC_ALLOC category.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>Add core support for a bloblist to convey data from SPL</title>
<updated>2018-11-26T13:25:32Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2018-11-16T01:43:50Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=9f407d4ef092c2ce7ab0f4f366aee252611dab3c'/>
<id>urn:sha1:9f407d4ef092c2ce7ab0f4f366aee252611dab3c</id>
<content type='text'>
At present there is no standard way in U-Boot to pass information from SPL
to U-Boot proper. But sometimes SPL wants to convey information to U-Boot
that U-Boot cannot easily figure out. For example, if SPL sets up SDRAM
then it might want to pass the size of SDRAM, or the location of each
bank, to U-Boot proper.

Add a new 'bloblist' feature which provides this. A bloblist is set up in
the first phase of U-Boot that runs (i.e. TPL or SPL). The location of
this info may be in SRAM or CAR (x86 cache-as-RAM) or somewhere else.

Information placed in this region is preserved (with a checksum) through
TPL and SPL and ends up in U-Boot. At this point it is copied into SDRAM
so it can be used after relocation.

Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Acked-by: Andreas Dannenberg &lt;dannenberg@ti.com&gt;
</content>
</entry>
<entry>
<title>spl: Add support for logging in SPL and TPL</title>
<updated>2018-11-26T13:25:32Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2018-11-16T01:43:49Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=4d8d3056f885b518c0d1d0b5a793d9bf4b579496'/>
<id>urn:sha1:4d8d3056f885b518c0d1d0b5a793d9bf4b579496</id>
<content type='text'>
It is sometimes useful to log information in SPL and TPL. Add support for
this.

Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>sandbox: log: Add a category for sandbox</title>
<updated>2018-11-21T02:14:22Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2018-11-06T22:21:24Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=a5c13b68e7516d3680c87f7207dcf337a1b3dd7c'/>
<id>urn:sha1:a5c13b68e7516d3680c87f7207dcf337a1b3dd7c</id>
<content type='text'>
It seems useful to make sandbox its own log category since it is used for
so much testing. Add this as a new category.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>log: Add comments to the rest of the log categories</title>
<updated>2018-10-09T10:40:27Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2018-10-01T18:22:32Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=0bf964592ab2955957e1c265508ade345ff7683b'/>
<id>urn:sha1:0bf964592ab2955957e1c265508ade345ff7683b</id>
<content type='text'>
At present some of the log categories are missing comments. Add them.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>sandbox: spi: Add more logging</title>
<updated>2018-10-09T10:40:27Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2018-10-01T17:55:13Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=c3aed5db591ee38068dc2b6d73b04638bd7b7b26'/>
<id>urn:sha1:c3aed5db591ee38068dc2b6d73b04638bd7b7b26</id>
<content type='text'>
Add logging to aid debugging features in these drivers. Also drop some
code in sandbox_spi_xfer() which is not used.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>log: Add helpers for common log levels</title>
<updated>2018-10-09T10:40:26Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2018-10-01T17:55:06Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=cdd140af5c6b623d31ac87a8054cee55fb70d3f0'/>
<id>urn:sha1:cdd140af5c6b623d31ac87a8054cee55fb70d3f0</id>
<content type='text'>
At present to output a log message you need something like:

   log(UCLASS_SPI, LOCL_INFO, "message1");
   log(UCLASS_SPI, LOCL_INFO, "message2");

but many files use the same category throughout. Also it is helpful to
shorten the length of log names, providing helpers for common logging
levels. Add some macros so that it is possible to do:

   (top of file, before #includes)
   #define LOG_CATEGORY UCLASS_SPI

   (later in the file)
   log_info("message1");
   log_debug("message2");
   log_err("message3");

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
</feed>
