You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2022/09/02 11:53:38 UTC
[plc4x] branch develop updated: fix(plc4go/cbus): fix build
This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new cbb656e4e fix(plc4go/cbus): fix build
cbb656e4e is described below
commit cbb656e4e2fd3df89db69d9a2e997a9304842cfe
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Fri Sep 2 13:53:30 2022 +0200
fix(plc4go/cbus): fix build
---
plc4go/internal/cbus/Browser.go | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/plc4go/internal/cbus/Browser.go b/plc4go/internal/cbus/Browser.go
index 3c2b570ce..f1fa85664 100644
--- a/plc4go/internal/cbus/Browser.go
+++ b/plc4go/internal/cbus/Browser.go
@@ -226,7 +226,7 @@ func (m Browser) getInstalledUnitAddressBytes(ctx context.Context) (map[byte]any
}
if plcListValue := rootStruct["values"]; plcListValue == nil || !plcListValue.IsList() {
- log.Warn().Msgf("Ignoring v should contain a values field of type list", rootStruct)
+ log.Warn().Msgf("Ignoring %v should contain a values field of type list", rootStruct)
return
} else {
for unitByteAddress, plcValue := range plcListValue.GetList() {
@@ -242,7 +242,7 @@ func (m Browser) getInstalledUnitAddressBytes(ctx context.Context) (map[byte]any
case readWriteModel.GAVState_DOES_NOT_EXIST.PLC4XEnumName():
log.Debug().Msgf("unit %d does not exists", unitByteAddress)
case readWriteModel.GAVState_ERROR.PLC4XEnumName():
- log.Warn().Msgf("unit %d is in error state")
+ log.Warn().Msgf("unit %d is in error state", unitByteAddress)
}
}
}
@@ -294,7 +294,7 @@ func (m Browser) getInstalledUnitAddressBytes(ctx context.Context) (map[byte]any
case readWriteModel.GAVState_DOES_NOT_EXIST.PLC4XEnumName():
log.Debug().Msgf("unit %d does not exists", unitByteAddress)
case readWriteModel.GAVState_ERROR.PLC4XEnumName():
- log.Warn().Msgf("unit %d is in error state")
+ log.Warn().Msgf("unit %d is in error state", unitByteAddress)
}
}
}