]> git.proxmox.com Git - qemu.git/blobdiff - hw/wm8750.c
virtio-net: simplify rx code
[qemu.git] / hw / wm8750.c
index 11bcec34106ee99145d09ffcdf9c4c1ada61484f..44f138fd51dc5927889f7f143f7065bacd9113ee 100644 (file)
@@ -361,10 +361,10 @@ static int wm8750_tx(I2CSlave *i2c, uint8_t data)
     uint16_t value;
 
     if (s->i2c_len >= 2) {
-        printf("%s: long message (%i bytes)\n", __FUNCTION__, s->i2c_len);
 #ifdef VERBOSE
-        return 1;
+        printf("%s: long message (%i bytes)\n", __func__, s->i2c_len);
 #endif
+        return 1;
     }
     s->i2c_data[s->i2c_len ++] = data;
     if (s->i2c_len != 2)