assert(s);
- /* QEMU requires that commas in arguments be escaped by doubling up the commas.
- * See https://www.qemu.org/docs/master/system/qemu-manpage.html#options
- * for more information.
+ /* QEMU requires that commas in arguments to be escaped by doubling up the commas. See
+ * https://www.qemu.org/docs/master/system/qemu-manpage.html#options for more information.
*
- * This function performs this escaping, returning an allocated string with the escaped value, or NULL if allocation failed. */
+ * This function performs this escaping, returning an allocated string with the escaped value, or
+ * NULL if allocation failed. */
n = strlen(s);
#include "macro.h"
#if defined(__x86_64__) || defined(__i386__) || defined(__arm__) || defined(__aarch64__)
-#define ARCHITECTURE_SUPPORTS_SMBIOS 1
+# define ARCHITECTURE_SUPPORTS_SMBIOS 1
#else
-#define ARCHITECTURE_SUPPORTS_SMBIOS 0
+# define ARCHITECTURE_SUPPORTS_SMBIOS 0
#endif
#if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__)
-#define ARCHITECTURE_SUPPORTS_TPM 1
+# define ARCHITECTURE_SUPPORTS_TPM 1
#else
-#define ARCHITECTURE_SUPPORTS_TPM 0
+# define ARCHITECTURE_SUPPORTS_TPM 0
#endif
#if defined(__x86_64__) || defined(__i386__)
-#define ARCHITECTURE_SUPPORTS_SMM 1
+# define ARCHITECTURE_SUPPORTS_SMM 1
#else
-#define ARCHITECTURE_SUPPORTS_SMM 0
+# define ARCHITECTURE_SUPPORTS_SMM 0
#endif
#if defined(__arm__) || defined(__aarch64__)
-#define DEFAULT_SERIAL_TTY "ttyAMA0"
+# define DEFAULT_SERIAL_TTY "ttyAMA0"
#elif defined(__s390__) || defined(__s390x__)
-#define DEFAULT_SERIAL_TTY "ttysclp0"
+# define DEFAULT_SERIAL_TTY "ttysclp0"
#elif defined(__powerpc__) || defined(__powerpc64__)
-#define DEFAULT_SERIAL_TTY "hvc0"
+# define DEFAULT_SERIAL_TTY "hvc0"
#else
-#define DEFAULT_SERIAL_TTY "ttyS0"
+# define DEFAULT_SERIAL_TTY "ttyS0"
#endif
#if defined(__x86_64__) || defined(__i386__)
-#define QEMU_MACHINE_TYPE "q35"
+# define QEMU_MACHINE_TYPE "q35"
#elif defined(__arm__) || defined(__aarch64__)
-#define QEMU_MACHINE_TYPE "virt"
+# define QEMU_MACHINE_TYPE "virt"
#elif defined(__s390__) || defined(__s390x__)
-#define QEMU_MACHINE_TYPE "s390-ccw-virtio"
+# define QEMU_MACHINE_TYPE "s390-ccw-virtio"
#elif defined(__powerpc__) || defined(__powerpc64__)
-#define QEMU_MACHINE_TYPE "pseries"
+# define QEMU_MACHINE_TYPE "pseries"
#else
-#error "No qemu machine defined for this architecture"
+# error "No qemu machine defined for this architecture"
#endif
typedef struct OvmfConfig {