[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 01/24] SMBIOS: fix long lines
From: |
Michael S. Tsirkin |
Subject: |
[PULL 01/24] SMBIOS: fix long lines |
Date: |
Mon, 18 Mar 2024 12:15:29 -0400 |
Break up long lines to fit under 80/90 char limit.
Fixes: 04f143d828 ("Implement SMBIOS type 9 v2.6")
Fixes: 735eee07d1 ("Implement base of SMBIOS type 9 descriptor.")
Cc: "Felix Wu" <flwu@google.com>
Cc: Nabih Estefan <nabihestefan@google.com>
Reviewed-by: Ani Sinha <anisinha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
hw/smbios/smbios.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/hw/smbios/smbios.c b/hw/smbios/smbios.c
index e3d5d8f2e2..949c2d74a1 100644
--- a/hw/smbios/smbios.c
+++ b/hw/smbios/smbios.c
@@ -1592,12 +1592,15 @@ void smbios_entry_add(QemuOpts *opts, Error **errp)
t = g_new0(struct type9_instance, 1);
save_opt(&t->slot_designation, opts, "slot_designation");
t->slot_type = qemu_opt_get_number(opts, "slot_type", 0);
- t->slot_data_bus_width = qemu_opt_get_number(opts,
"slot_data_bus_width", 0);
+ t->slot_data_bus_width =
+ qemu_opt_get_number(opts, "slot_data_bus_width", 0);
t->current_usage = qemu_opt_get_number(opts, "current_usage", 0);
t->slot_length = qemu_opt_get_number(opts, "slot_length", 0);
t->slot_id = qemu_opt_get_number(opts, "slot_id", 0);
- t->slot_characteristics1 = qemu_opt_get_number(opts,
"slot_characteristics1", 0);
- t->slot_characteristics2 = qemu_opt_get_number(opts,
"slot_characteristics2", 0);
+ t->slot_characteristics1 =
+ qemu_opt_get_number(opts, "slot_characteristics1", 0);
+ t->slot_characteristics2 =
+ qemu_opt_get_number(opts, "slot_characteristics2", 0);
save_opt(&t->pcidev, opts, "pcidev");
QTAILQ_INSERT_TAIL(&type9, t, next);
return;
--
MST
- [PULL 00/24] virtio,pc,pci: bugfixes, Michael S. Tsirkin, 2024/03/18
- [PULL 01/24] SMBIOS: fix long lines,
Michael S. Tsirkin <=
- [PULL 03/24] docs/specs/pvpanic: mark shutdown event as not implemented, Michael S. Tsirkin, 2024/03/18
- [PULL 02/24] qapi: document PCIe Gen5/Gen6 speeds since 9.0, Michael S. Tsirkin, 2024/03/18
- [PULL 04/24] tests: smbios: make it possible to write SMBIOS only test, Michael S. Tsirkin, 2024/03/18
- [PULL 06/24] tests: smbios: add test for legacy mode CLI options, Michael S. Tsirkin, 2024/03/18
- [PULL 05/24] tests: smbios: add test for -smbios type=11 option, Michael S. Tsirkin, 2024/03/18
- [PULL 07/24] smbios: cleanup smbios_get_tables() from legacy handling, Michael S. Tsirkin, 2024/03/18
- [PULL 08/24] smbios: get rid of smbios_smp_sockets global, Michael S. Tsirkin, 2024/03/18
- [PULL 10/24] smbios: avoid mangling user provided tables, Michael S. Tsirkin, 2024/03/18
- [PULL 11/24] smbios: don't check type4 structures in legacy mode, Michael S. Tsirkin, 2024/03/18
- [PULL 09/24] smbios: get rid of smbios_legacy global, Michael S. Tsirkin, 2024/03/18