This is an automated email from the ASF dual-hosted git repository.

mgorecki pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git


The following commit(s) were added to refs/heads/master by this push:
     new a8b19710 newt/builder: Change log level for BOOTUTIL_MAX_IMG_SECTORS 
warning
a8b19710 is described below

commit a8b19710623615cd3c541807d78bd186aba6b126
Author: Wiktor Kwiatkowski <[email protected]>
AuthorDate: Mon Feb 23 12:23:56 2026 +0100

    newt/builder: Change log level for BOOTUTIL_MAX_IMG_SECTORS warning
    
    This information is only relevant for debugging purposes.
---
 newt/builder/targetbuild.go | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/newt/builder/targetbuild.go b/newt/builder/targetbuild.go
index 3792c460..9fa41aee 100644
--- a/newt/builder/targetbuild.go
+++ b/newt/builder/targetbuild.go
@@ -779,17 +779,14 @@ func getSettingIntValue(settings 
map[string]syscfg.CfgEntry, settingName string,
        var intValue int
        entry, ok := settings[settingName]
        if !ok {
-               util.StatusMessage(util.VERBOSITY_DEFAULT,
-                       "* Warning: target does not define %s "+
-                               "setting; assuming a value of %d.\n", 
settingName, defaultValue)
+               log.Debugf("Target does not define %s "+
+                                  "setting; assuming a value of %d.\n", 
settingName, defaultValue)
                intValue = defaultValue
        } else {
                val, err := util.AtoiNoOct(entry.Value)
                if err != nil {
-                       util.StatusMessage(util.VERBOSITY_DEFAULT,
-                               "* Warning: target specifies invalid 
non-integer "+
-                                       "%s setting; assuming a "+
-                                       "value of %d.\n", settingName, 
defaultValue)
+                       log.Debugf("Target specifies invalid non-integer %s 
setting; assuming a "+
+                                          "value of %d.\n", settingName, 
defaultValue)
                        intValue = defaultValue
                } else {
                        intValue = val

Reply via email to