def print_args(args):
    debug_print('parsed arguments:')
    debug_print('.input  = ', args.input)
    debug_print('.output = ', args.output)
    debug_print('.loader_file = ', args.loader_file)
    debug_print('.spi_size (KB) = ', hex(args.spi_size))
    debug_print('.image_size = ', hex(args.image_size))
    debug_print('.header_loc = ', hex(args.header_loc))
    debug_print('.payload_offset = ', hex(args.payload_offset))
    if (args.rw_loc < 0):
        debug_print('.rw_loc = ', args.rw_loc)
    else:
        debug_print('.rw_loc = ', hex(args.rw_loc))
    debug_print('.spi_clock = ', args.spi_clock)
    debug_print('.spi_read_cmd = ', args.spi_read_cmd)
    debug_print('.test_spi = ', args.test_spi)
    debug_print('.verbose = ', args.verbose)
def print_args(args):
    debug_print('parsed arguments:')
    debug_print('.input  = ', args.input)
    debug_print('.output = ', args.output)
    debug_print('.loader_file = ', args.loader_file)
    debug_print('.spi_size (KB) = ', hex(args.spi_size))
    debug_print('.image_size = ', hex(args.image_size))
    debug_print('.header_loc = ', hex(args.header_loc))
    debug_print('.payload_offset = ', hex(args.payload_offset))
    if (args.rw_loc < 0):
        debug_print('.rw_loc = ', args.rw_loc)
    else:
        debug_print('.rw_loc = ', hex(args.rw_loc))
    debug_print('.spi_clock = ', args.spi_clock)
    debug_print('.spi_read_cmd = ', args.spi_read_cmd)
    debug_print('.test_spi = ', args.test_spi)
    debug_print('.verbose = ', args.verbose)