summaryrefslogtreecommitdiffstats
path: root/src/vmspawn
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-05-08 12:05:41 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-05-08 15:13:14 +0200
commit3ea527d33c8bf14dbc9aca623e4ba053815f18cb (patch)
treead5c69d7da9a3a6dcb2a3e99830b9875314458f2 /src/vmspawn
parentfirewall-util-iptables: update ELF note to mention "iptables" (diff)
downloadsystemd-3ea527d33c8bf14dbc9aca623e4ba053815f18cb.tar.xz
systemd-3ea527d33c8bf14dbc9aca623e4ba053815f18cb.zip
vmspawn: indentation
Diffstat (limited to 'src/vmspawn')
-rw-r--r--src/vmspawn/vmspawn-util.c8
-rw-r--r--src/vmspawn/vmspawn-util.h30
2 files changed, 19 insertions, 19 deletions
diff --git a/src/vmspawn/vmspawn-util.c b/src/vmspawn/vmspawn-util.c
index 9b2b45e1e6..472dd92126 100644
--- a/src/vmspawn/vmspawn-util.c
+++ b/src/vmspawn/vmspawn-util.c
@@ -492,11 +492,11 @@ char* escape_qemu_value(const char *s) {
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);
diff --git a/src/vmspawn/vmspawn-util.h b/src/vmspawn/vmspawn-util.h
index cd1f91d032..fed0996891 100644
--- a/src/vmspawn/vmspawn-util.h
+++ b/src/vmspawn/vmspawn-util.h
@@ -5,43 +5,43 @@
#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 {