Skip to contentSkip to conversation

hw/misc/auxbus: Use qemu_log_mask(UNIMP) instead of debug printf

PATCH Applied Philippe Mathieu-Daudé 4 participants 4 messages Jun 6, 2020 – Jun 9, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/misc/auxbus: Use qemu_log_mask(UNIMP) instead of debug printf

Replace a deprecated DPRINTF() call by qemu_log_mask(LOG_UNIMP).

---
 hw/misc/auxbus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/misc/auxbus.c +1 -1
index f8e7b97971..06aabf20c5 100644
@@ -196,7 +196,7 @@ AUXReply aux_request(AUXBus *bus, AUXCommand cmd, uint32_t address,
         }
         break;
     default:
-        DPRINTF("Not implemented!\n");
+        qemu_log_mask(LOG_UNIMP, "AUX cmd=%u not implemented\n", cmd);
         return AUX_NACK;
     }
 
Signature · 1 line
2.21.3
Reviewed-by on v1 1/1
#2 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 13 lines · Philippe Mathieu-Daudé

Replace a deprecated DPRINTF() call by qemu_log_mask(LOG_UNIMP).

---
 hw/misc/auxbus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/misc/auxbus.c +0 -0
index f8e7b97971..06aabf20c5 100644

hw/misc/auxbus.c AUXReply aux_request(AUXBus *bus, AUXCommand cmd, uint32_t address, · line 202

Quoted 8 lines
hw/misc/auxbus.c +1 -1
@@ -196,7 +196,7 @@ AUXReply aux_request(AUXBus *bus, AUXCommand cmd, uint32_t address,
         }
         break;
     default:
-        DPRINTF("Not implemented!\n");
+        qemu_log_mask(LOG_UNIMP, "AUX cmd=%u not implemented\n", cmd);
         return AUX_NACK;
     }
 
#3 lore raw
In reply to Philippe Mathieu-Daudé

Le 06/06/2020 à 09:02, Philippe Mathieu-Daudé a écrit :

Quoted 13 lines

Replace a deprecated DPRINTF() call by qemu_log_mask(LOG_UNIMP).

---
 hw/misc/auxbus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/misc/auxbus.c +0 -0
index f8e7b97971..06aabf20c5 100644

hw/misc/auxbus.c AUXReply aux_request(AUXBus *bus, AUXCommand cmd, uint32_t address, · line 202

Quoted 8 lines
hw/misc/auxbus.c +1 -1
@@ -196,7 +196,7 @@ AUXReply aux_request(AUXBus *bus, AUXCommand cmd, uint32_t address,
         }
         break;
     default:
-        DPRINTF("Not implemented!\n");
+        qemu_log_mask(LOG_UNIMP, "AUX cmd=%u not implemented\n", cmd);
         return AUX_NACK;
     }
 

Applied to my trivial-patches branch.

Thanks,
Laurent