@@ -97,12 +97,11 @@ def check_config_guess(config_guess):
9797 if config_guess_version != CONFIG_GUESS_VERSION :
9898 result = False
9999 tup = (config_guess , config_guess_version , CONFIG_GUESS_VERSION )
100- print_warning ("config.guess version at %s does not match expected version: %s vs %s" % tup , log = log )
100+ log . warning ("config.guess version at %s does not match expected version: %s vs %s" % tup )
101101 elif config_guess_checksum != CONFIG_GUESS_SHA256 :
102102 result = False
103103 tup = (config_guess , config_guess_checksum , CONFIG_GUESS_SHA256 )
104- print_warning ("SHA256 checksum of config.guess at %s does not match expected checksum: %s vs %s" % tup ,
105- log = log )
104+ log .warning ("SHA256 checksum of config.guess at %s does not match expected checksum: %s vs %s" % tup )
106105
107106 return result
108107
@@ -145,9 +144,9 @@ def obtain_config_guess(download_source_path=None, search_source_paths=None):
145144 cand_config_guess_path = os .path .join (download_source_path , sourcepath_subdir , config_guess )
146145 config_guess_url = CONFIG_GUESS_URL_STUB + CONFIG_GUESS_COMMIT_ID
147146 if not download_file (config_guess , config_guess_url , cand_config_guess_path ):
148- log . warning ("Failed to download recent %s to %s" , config_guess , cand_config_guess_path )
147+ print_warning ("Failed to download recent %s to %s" , config_guess , cand_config_guess_path , log = log )
149148 elif not check_config_guess (cand_config_guess_path ):
150- log . warning ("Verification failed for file %s, not using it!" , cand_config_guess_path )
149+ print_warning ("Verification failed for file %s, not using it!" , cand_config_guess_path , log = log )
151150 remove_file (cand_config_guess_path )
152151 else :
153152 config_guess_path = cand_config_guess_path
0 commit comments