fix some nits found by analyzers

This commit is contained in:
Rainer Gerhards 2018-12-30 17:18:44 +01:00
parent 47a124fbe9
commit e0d62c6443
No known key found for this signature in database
GPG Key ID: 0CB6B2A8BE80B499
5 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@
srcdir=$(dirname $0) srcdir=$(dirname $0)
test -z "$srcdir" && srcdir=. test -z "$srcdir" && srcdir=.
(test -f $srcdir/configure.ac) || { test -f $srcdir/configure.ac || {
printf '**Error**: Directory "%s" does not look like the\n' "$srcdir" printf '**Error**: Directory "%s" does not look like the\n' "$srcdir"
printf ' top-level package directory' printf ' top-level package directory'
exit 1 exit 1

View File

@ -331,7 +331,7 @@ else:
print " End analyzing logdata" print " End analyzing logdata"
print"Begin showing found problems." print"Begin showing found problems."
if len(aPossibleProblems) > 0: if len(aPossibleProblems) > 0:
# Output all found problems! # Output all found problems!

View File

@ -157,7 +157,7 @@ else:
iTimeStamp = int(time.mktime(myDateTime.timetuple())) iTimeStamp = int(time.mktime(myDateTime.timetuple()))
# Init Start Seconds # Init Start Seconds
if iStartSeconds == 0: if iStartSeconds == 0:
iStartSeconds = iTimeStamp iStartSeconds = iTimeStamp
# Set data field # Set data field
@ -276,7 +276,7 @@ else:
myChart.add(aFields[iChartNum], aData[ aFields[iChartNum] ]) # Add some values myChart.add(aFields[iChartNum], aData[ aFields[iChartNum] ]) # Add some values
# for iChartNum in range(3, len(aFields) ): # for iChartNum in range(3, len(aFields) ):
# myChart.add(aFields[iChartNum], aData[ aFields[iChartNum] ]) # Add some values # myChart.add(aFields[iChartNum], aData[ aFields[iChartNum] ]) # Add some values
# Render Chart now and output to file! # Render Chart now and output to file!
if bConvertPng: if bConvertPng:
szPngFileName = szOutputFile[:-4] + ".png" szPngFileName = szOutputFile[:-4] + ".png"

View File

@ -116,7 +116,7 @@ def checkErrorInterleaved():
print item print item
print "Unknown item found" print "Unknown item found"
sys.exit(4) sys.exit(4)
return 0 return 0
def checkInterleaved(): def checkInterleaved():

View File

@ -12,7 +12,7 @@
http://www.apache.org/licenses/LICENSE-2.0 http://www.apache.org/licenses/LICENSE-2.0
-or- -or-
see COPYING.ASL20 in the source distribution see COPYING.ASL20 in the source distribution
Unless required by applicable law or agreed to in writing, software Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.