[PATCH 10/16] modprobe: trivial indentation fix in dump_modversions()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Andreas Robinson <andr345@xxxxxxxxx>
---
 modprobe.c |   74 ++++++++++++++++++++++++++++++------------------------------
 1 files changed, 37 insertions(+), 37 deletions(-)

diff --git a/modprobe.c b/modprobe.c
index 1cbbeff..b69ae48 100644
--- a/modprobe.c
+++ b/modprobe.c
@@ -860,43 +860,43 @@ const char *skip_dot(const char *str)
 
 void dump_modversions(const char *filename, errfn_t error)
 {
-       unsigned long size, secsize;
-       void *file = grab_file(filename, &size);
-       struct modver32_info *info32;
-       struct modver64_info *info64;
-       int n;
-       int conv;
-
-       if (!file) {
-               error("%s: %s\n", filename, strerror(errno));
-               return;
-       }
-       switch (elf_ident(file, size, &conv)) {
-       case ELFCLASS32:
-               info32 = get_section32(file, size, "__versions", &secsize, conv);
-               if (!info32)
-                       return;  /* Does not seem to be a kernel module */
-               if (secsize % sizeof(struct modver32_info))
-                       error("Wrong section size in %s\n", filename);
-               for (n = 0; n < secsize / sizeof(struct modver32_info); n++)
-                       printf("0x%08lx\t%s\n", (unsigned long)
-                              info32[n].crc, skip_dot(info32[n].name));
-               break;
-
-       case ELFCLASS64:
-               info64 = get_section64(file, size, "__versions", &secsize, conv);
-               if (!info64)
-                       return;  /* Does not seem to be a kernel module */
-               if (secsize % sizeof(struct modver64_info))
-                       error("Wrong section size in %s\n", filename);
-               for (n = 0; n < secsize / sizeof(struct modver64_info); n++)
-                       printf("0x%08llx\t%s\n", (unsigned long long)
-                              info64[n].crc, skip_dot(info64[n].name));
-               break;
-
-       default:
-               error("%s: ELF class not recognized\n", filename);
-       }
+	unsigned long size, secsize;
+	void *file = grab_file(filename, &size);
+	struct modver32_info *info32;
+	struct modver64_info *info64;
+	int n;
+	int conv;
+
+	if (!file) {
+		error("%s: %s\n", filename, strerror(errno));
+		return;
+	}
+	switch (elf_ident(file, size, &conv)) {
+	case ELFCLASS32:
+		info32 = get_section32(file, size, "__versions", &secsize, conv);
+		if (!info32)
+			return;  /* Does not seem to be a kernel module */
+		if (secsize % sizeof(struct modver32_info))
+			error("Wrong section size in %s\n", filename);
+		for (n = 0; n < secsize / sizeof(struct modver32_info); n++)
+			printf("0x%08lx\t%s\n", (unsigned long)
+				info32[n].crc, skip_dot(info32[n].name));
+		break;
+
+	case ELFCLASS64:
+		info64 = get_section64(file, size, "__versions", &secsize, conv);
+		if (!info64)
+			return;  /* Does not seem to be a kernel module */
+		if (secsize % sizeof(struct modver64_info))
+			error("Wrong section size in %s\n", filename);
+		for (n = 0; n < secsize / sizeof(struct modver64_info); n++)
+			printf("0x%08llx\t%s\n", (unsigned long long)
+				info64[n].crc, skip_dot(info64[n].name));
+		break;
+
+	default:
+		error("%s: ELF class not recognized\n", filename);
+	}
 }
 
 
-- 
1.6.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux