aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Robinson <andr345@gmail.com>2009-05-14 16:52:20 +0200
committerAndreas Robinson <andr345@gmail.com>2009-05-15 15:04:16 +0200
commit91e0b68e2db7b3e1c462e16f062b4477ed53847b (patch)
treefaf6961539cc3b8ddbcdcdc22eb98d25e8e74d63
parent7ffd0170469019b8feafd82b02f7902f9602142c (diff)
downloadmodule-init-tools-91e0b68e2db7b3e1c462e16f062b4477ed53847b.tar.gz
modprobe: trivial indentation fix in dump_modversions()
Signed-off-by: Andreas Robinson <andr345@gmail.com>
-rw-r--r--modprobe.c74
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);
+ }
}