Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] kernel-yocto: Fix bb.debug to add missing log level
@ 2020-08-06  9:15 Richard Purdie
  2020-08-06  9:33 ` ✗ patchtest: failure for " Patchwork
  2020-08-06 12:48 ` [OE-core] [PATCH] " Bruce Ashfield
  0 siblings, 2 replies; 3+ messages in thread
From: Richard Purdie @ 2020-08-06  9:15 UTC (permalink / raw)
  To: openembedded-core

Fixes warnings like:

WARNING: linux-intel-5.4.50+gitAUTOINC+caafbdfe38_89e6c056f3-r0 do_kernel_configcheck: Passed invalid debug level 'outfile size is: /home/pokybuild/yocto-worker/meta-intel/build/build/tmp/work-shared/intel-corei7-64/kernel-source/.kernel-meta/cfg/mismatch.txt 767' to bb.debug

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/classes/kernel-yocto.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 3c428c0782e..7f870a6cc61 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -515,7 +515,7 @@ python do_kernel_configcheck() {
         with open(outfile, 'w+') as f:
             f.write( analysis )
 
-        bb.debug( "outfile size is: %s %s" % (outfile,os.stat(outfile).st_size))
+        bb.debug(1, "outfile size is: %s %s" % (outfile,os.stat(outfile).st_size))
         if config_check_visibility and os.stat(outfile).st_size > 0:
             with open (outfile, "r") as myfile:
                 results = myfile.read()
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* ✗ patchtest: failure for kernel-yocto: Fix bb.debug to add missing log level
  2020-08-06  9:15 [PATCH] kernel-yocto: Fix bb.debug to add missing log level Richard Purdie
@ 2020-08-06  9:33 ` Patchwork
  2020-08-06 12:48 ` [OE-core] [PATCH] " Bruce Ashfield
  1 sibling, 0 replies; 3+ messages in thread
From: Patchwork @ 2020-08-06  9:33 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

== Series Details ==

Series: kernel-yocto: Fix bb.debug to add missing log level
Revision: 1
URL   : https://patchwork.openembedded.org/series/25494/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Issue             Series does not apply on top of target branch [test_series_merge_on_head] 
  Suggested fix    Rebase your series on top of targeted branch
  Targeted branch  master (currently at 10221e578f)



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH] kernel-yocto: Fix bb.debug to add missing log level
  2020-08-06  9:15 [PATCH] kernel-yocto: Fix bb.debug to add missing log level Richard Purdie
  2020-08-06  9:33 ` ✗ patchtest: failure for " Patchwork
@ 2020-08-06 12:48 ` Bruce Ashfield
  1 sibling, 0 replies; 3+ messages in thread
From: Bruce Ashfield @ 2020-08-06 12:48 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 1717 bytes --]

On Thu, Aug 6, 2020 at 5:15 AM Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:

> Fixes warnings like:
>
> WARNING: linux-intel-5.4.50+gitAUTOINC+caafbdfe38_89e6c056f3-r0
> do_kernel_configcheck: Passed invalid debug level 'outfile size is:
> /home/pokybuild/yocto-worker/meta-intel/build/build/tmp/work-shared/intel-corei7-64/kernel-source/.kernel-meta/cfg/mismatch.txt
> 767' to bb.debug
>
>
Argh.

Apparently I didn't hit any mismatches after putting that debug statement
in. I was getting a file with a single \n and it was breaking the size
test, hence the debug addition.

Thanks for the fixup on this one.

Cheers,

Bruce



> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
>  meta/classes/kernel-yocto.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/kernel-yocto.bbclass
> b/meta/classes/kernel-yocto.bbclass
> index 3c428c0782e..7f870a6cc61 100644
> --- a/meta/classes/kernel-yocto.bbclass
> +++ b/meta/classes/kernel-yocto.bbclass
> @@ -515,7 +515,7 @@ python do_kernel_configcheck() {
>          with open(outfile, 'w+') as f:
>              f.write( analysis )
>
> -        bb.debug( "outfile size is: %s %s" %
> (outfile,os.stat(outfile).st_size))
> +        bb.debug(1, "outfile size is: %s %s" %
> (outfile,os.stat(outfile).st_size))
>          if config_check_visibility and os.stat(outfile).st_size > 0:
>              with open (outfile, "r") as myfile:
>                  results = myfile.read()
> --
> 2.25.1
>
> 
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II

[-- Attachment #2: Type: text/html, Size: 3070 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-06 12:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-06  9:15 [PATCH] kernel-yocto: Fix bb.debug to add missing log level Richard Purdie
2020-08-06  9:33 ` ✗ patchtest: failure for " Patchwork
2020-08-06 12:48 ` [OE-core] [PATCH] " Bruce Ashfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox