]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vmspawn: indentation
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 8 May 2024 10:05:41 +0000 (12:05 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 8 May 2024 13:13:14 +0000 (15:13 +0200)
src/vmspawn/vmspawn-util.c
src/vmspawn/vmspawn-util.h

index 9b2b45e1e63ad2bc8522ea846c0bdc169430c52b..472dd92126802cd859bafdde5e1ce9f5b53f6a01 100644 (file)
@@ -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);
 
index cd1f91d0329f104a24e72280dca2433fb12772ac..fed0996891ff61f59f2f8e7e236ebe16971992ba 100644 (file)
@@ -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 {