human
Solve the following python programming problem given the following code:
@ waflib.Configure.conf 
def hwaf_utest_summary(bld, * k, **kwargs) : 
    "
    Display an execution summary::

        def build(bld):
            bld(features='cxx cxxprogram test', source='main.c', target='app')
            bld.add_post_fun(hwaf_utest_summary)
    " 
    lst = getattr (bld, 'hwaf_utest_results', []) 
    if lst : 
        Logs.pprint ('CYAN', ('=' * 80)) 
        Logs.pprint ('CYAN', 'unit-tests execution summary') 
        total = len (lst) 
        tfail = len ([x for x in lst if (x [1] != x [4])]) 
        val = ((100 * (total - tfail)) / (1.0 * total)) 
        Logs.pprint ('CYAN', ('test report %3.0f%% success' % val)) 
        Logs.pprint ('CYAN', ('  tests that pass %d/%d' % ((total - tfail), total))) 
        for (f, code, out, err, exp_rc) in lst : 
            if (code == exp_rc) : 
                Logs.pprint ('CYAN', ('    %s' % f)) 
                pass 
pass 
Logs.pprint ('CYAN', ('  tests that fail %d/%d' % (tfail, total))) 
        for (f, code, out, err, exp_rc) in lst : 
            if (code != exp_rc) : 
                Logs.pprint ('CYAN', ('    %s (err=%d, exp=%d)' % (f, code, tfail))) 
                pass 
pass 
Logs.pprint ('CYAN', ('=' * 80)) 
        pass 
return 

    
    

    Fix the buggy line: Logs.pprint ('CYAN', ('    %s (err=%d, exp=%d)' % (f, code, tfail)))
assistant
#Here is Python code to fix the buggy line: Logs.

Logs.pprint ('CYAN', ('    %s (err=%d, exp=%d)' % (f, code, exp_rc)))