def printByteArrayAsHex(ba, title):
    debug_print(title, '= ')
    count = 0
    for b in ba:
        count = (count + 1)
        debug_print('0x{0:02x}, '.format(b), end='')
        if ((count % 8) == 0):
            debug_print('')
    debug_print('\n')
def printByteArrayAsHex(ba, title):
    debug_print(title, '= ')
    count = 0
    for b in ba:
        count = (count + 1)
        debug_print('0x{0:02x}, '.format(b), end=)
        if ((count % 8) == 0):
            debug_print()
    debug_print('\n')