Revision b832134d hw/rc4030.c

b/hw/rc4030.c
749 749
        printf("rc4030 dma: Copying %d bytes %s host %p\n",
750 750
            len, is_write ? "from" : "to", buf);
751 751
        for (i = 0; i < len; i += 16) {
752
            int n = min(16, len - i);
752
            int n = 16;
753
            if (n > len - i) {
754
                n = len - i;
755
            }
753 756
            for (j = 0; j < n; j++)
754 757
                printf("%02x ", buf[i + j]);
755 758
            while (j++ < 16)

Also available in: Unified diff