Print this page
4445 wsdiff results file timestamp format is strange


1327         # Return values are returned from args() in alpha order
1328         # (Yes, python functions can return multiple values (ewww))
1329         # Note that args() also set the globals:
1330         #       logging to True if verbose logging (to a file) was enabled
1331         #       vdiffs to True if logged differences aren't to be truncated
1332         #       reportAllSects to True if all ELF section differences are to be reported
1333         #
1334         baseRoot, fileNamesFile, localTools, ptchRoot, results = args()
1335 
1336         #
1337         # Set up the results/log file
1338         #
1339         if logging :
1340                 try:
1341                         log = open(results, "w")
1342                 except:
1343                         logging = False
1344                         error("failed to open log file: " + log)
1345                         sys.exit(1)
1346 
1347                 dateTimeStr= "# %d/%d/%d at %d:%d:%d" % time.localtime()[:6]
1348                 v_info("# This file was produced by wsdiff")
1349                 v_info(dateTimeStr)
1350 
1351         # Changed files (used only for the sorted case)
1352         if sorted :
1353                 differentFiles = []
1354 
1355         # 
1356         # Build paths to the tools required tools
1357         #
1358         # Try to look for tools in $SRC/tools if the "-t" option
1359         # was specified
1360         #
1361         arch = commands.getoutput("uname -p")
1362         if localTools :
1363                 try:
1364                         src = os.environ['SRC']
1365                 except:
1366                         error("-t specified, but $SRC not set. Cannot find $SRC/tools")
1367                         src = ""




1327         # Return values are returned from args() in alpha order
1328         # (Yes, python functions can return multiple values (ewww))
1329         # Note that args() also set the globals:
1330         #       logging to True if verbose logging (to a file) was enabled
1331         #       vdiffs to True if logged differences aren't to be truncated
1332         #       reportAllSects to True if all ELF section differences are to be reported
1333         #
1334         baseRoot, fileNamesFile, localTools, ptchRoot, results = args()
1335 
1336         #
1337         # Set up the results/log file
1338         #
1339         if logging :
1340                 try:
1341                         log = open(results, "w")
1342                 except:
1343                         logging = False
1344                         error("failed to open log file: " + log)
1345                         sys.exit(1)
1346 
1347                 dateTimeStr= "# %04d-%02d-%02d at %02d:%02d:%02d" % time.localtime()[:6]
1348                 v_info("# This file was produced by wsdiff")
1349                 v_info(dateTimeStr)
1350 
1351         # Changed files (used only for the sorted case)
1352         if sorted :
1353                 differentFiles = []
1354 
1355         # 
1356         # Build paths to the tools required tools
1357         #
1358         # Try to look for tools in $SRC/tools if the "-t" option
1359         # was specified
1360         #
1361         arch = commands.getoutput("uname -p")
1362         if localTools :
1363                 try:
1364                         src = os.environ['SRC']
1365                 except:
1366                         error("-t specified, but $SRC not set. Cannot find $SRC/tools")
1367                         src = ""