static void ohci_td_pkt(const char *msg, const uint8_t *buf, size_t len)

{

    bool print16 = !!trace_event_get_state(TRACE_USB_OHCI_TD_PKT_SHORT);

    bool printall = !!trace_event_get_state(TRACE_USB_OHCI_TD_PKT_FULL);

    const int width = 16;

    int i;

    char tmp[3 * width + 1];

    char *p = tmp;



    if (!printall && !print16) {

        return;

    }



    for (i = 0; ; i++) {

        if (i && (!(i % width) || (i == len))) {

            if (!printall) {

                trace_usb_ohci_td_pkt_short(msg, tmp);

                break;

            }

            trace_usb_ohci_td_pkt_full(msg, tmp);

            p = tmp;

            *p = 0;

        }

        if (i == len) {

            break;

        }



        p += sprintf(p, " %.2x", buf[i]);

    }

}

static void ohci_td_pkt(const char *msg, const uint8_t *buf, size_t len)

{

    bool print16 = !!trace_event_get_state(TRACE_USB_OHCI_TD_PKT_SHORT);

    bool printall = !!trace_event_get_state(TRACE_USB_OHCI_TD_PKT_FULL);

    const int width = 16;

    int i;

    char tmp[3 * width + 1];

    char *p = tmp;



    if (!printall && !print16) {

        return;

    }



    for (i = 0; ; i++) {

        if (i && (!(i % width) || (i == len))) {

            if (!printall) {

                trace_usb_ohci_td_pkt_short(msg, tmp);

                break;

            }

            trace_usb_ohci_td_pkt_full(msg, tmp);

            p = tmp;

            *p = 0;

        }

        if (i == len) {

            break;

        }



        p += sprintf(p, " %.2x", buf[i]);

    }

}

    bool print16 = !!trace_event_get_state(TRACE_USB_OHCI_TD_PKT_SHORT);     bool printall = !!trace_event_get_state(TRACE_USB_OHCI_TD_PKT_FULL); static void ohci_td_pkt(const char *msg, const uint8_t *buf, size_t len)
static void FUNC_0(const char *VAR_0, const uint8_t *VAR_1, size_t VAR_2)

{

    bool print16 = !!trace_event_get_state(TRACE_USB_OHCI_TD_PKT_SHORT);

    bool printall = !!trace_event_get_state(TRACE_USB_OHCI_TD_PKT_FULL);

    const int VAR_3 = 16;

    int VAR_4;

    char VAR_5[3 * VAR_3 + 1];

    char *VAR_6 = VAR_5;



    if (!printall && !print16) {

        return;

    }



    for (VAR_4 = 0; ; VAR_4++) {

        if (VAR_4 && (!(VAR_4 % VAR_3) || (VAR_4 == VAR_2))) {

            if (!printall) {

                trace_usb_ohci_td_pkt_short(VAR_0, VAR_5);

                break;

            }

            trace_usb_ohci_td_pkt_full(VAR_0, VAR_5);

            VAR_6 = VAR_5;

            *VAR_6 = 0;

        }

        if (VAR_4 == VAR_2) {

            break;

        }



        VAR_6 += sprintf(VAR_6, " %.2x", VAR_1[VAR_4]);

    }

}

static void FUNC_0(const char *VAR_0, const uint8_t *VAR_1, size_t VAR_2)
{ bool print16 = !!trace_event_get_state(TRACE_USB_OHCI_TD_PKT_SHORT); bool printall = !!trace_event_get_state(TRACE_USB_OHCI_TD_PKT_FULL); const int VAR_3 = 16; int VAR_4; char VAR_5[3 * VAR_3 + 1]; char *VAR_6 = VAR_5; if (!printall && !print16) { return; } for (VAR_4 = 0; ; VAR_4++) { if (VAR_4 && (!(VAR_4 % VAR_3) || (VAR_4 == VAR_2))) { if (!printall) { trace_usb_ohci_td_pkt_short(VAR_0, VAR_5); break; } trace_usb_ohci_td_pkt_full(VAR_0, VAR_5); VAR_6 = VAR_5; *VAR_6 = 0; } if (VAR_4 == VAR_2) { break; } VAR_6 += sprintf(VAR_6, " %.2x", VAR_1[VAR_4]); } }