]> granicus.if.org Git - strace/commitdiff
file_ioctl.c: fix indentation
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 24 May 2016 00:19:53 +0000 (00:19 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 24 May 2016 14:52:27 +0000 (14:52 +0000)
* file_ioctl.c: Fix indentation of preprocessor directives
and print formats.

file_ioctl.c

index 9d94d5c32331b4f6ef96433cb7da2e115afea31c..e51fbeece13e61bd3806fa38d5ab1a971123178d 100644 (file)
 #endif
 
 #ifndef FICLONE
-#define FICLONE         _IOW(0x94, 9, int)
+# define FICLONE         _IOW(0x94, 9, int)
 #endif
 
 #ifndef FICLONERANGE
-#define FICLONERANGE    _IOW(0x94, 13, struct file_clone_range)
+# define FICLONERANGE    _IOW(0x94, 13, struct file_clone_range)
 struct file_clone_range {
        int64_t src_fd;
        uint64_t src_offset;
@@ -50,7 +50,7 @@ struct file_clone_range {
 #endif
 
 #ifndef FIDEDUPERANGE
-#define FIDEDUPERANGE   _IOWR(0x94, 54, struct file_dedupe_range)
+# define FIDEDUPERANGE   _IOWR(0x94, 54, struct file_dedupe_range)
 struct file_dedupe_range_info {
        int64_t dest_fd;        /* in - destination file */
        uint64_t dest_offset;   /* in - start of extent in destination */
@@ -79,25 +79,25 @@ int
 file_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
 {
        switch (code) {
-       /* take a signed int */
        case FICLONE:   /* W */
-               tprintf(", %d", (int)arg);
+               tprintf(", %d", (int) arg);
                break;
 
        case FICLONERANGE: { /* W */
                struct file_clone_range args;
 
                tprints(", ");
-
                if (umove_or_printaddr(tcp, arg, &args))
                        break;
 
-               tprintf("{src_fd=%" PRIi64 ", "
-                       "src_offset=%" PRIu64 ", "
-                       "src_length=%" PRIu64 ", "
-                       "dest_offset=%" PRIu64 "}",
-                       (int64_t)args.src_fd, (uint64_t)args.src_offset,
-                       (uint64_t)args.src_length, (uint64_t)args.dest_offset);
+               tprintf("{src_fd=%" PRIi64
+                       ", src_offset=%" PRIu64
+                       ", src_length=%" PRIu64
+                       ", dest_offset=%" PRIu64 "}",
+                       (int64_t) args.src_fd,
+                       (uint64_t) args.src_offset,
+                       (uint64_t) args.src_length,
+                       (uint64_t) args.dest_offset);
                break;
        }