[prev in list] [next in list] [prev in thread] [next in thread]
List: git-commits-24
Subject: [PATCH] edd.c display %u, remove REPORT_URL
From: Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date: 2004-06-23 12:26:37
Message-ID: 200406231402.i5NE2vDt031390 () hera ! kernel ! org
[Download RAW message or body]
ChangeSet 1.1455, 2004/06/23 09:26:37-03:00, Matt_Domsch@dell.com
[PATCH] edd.c display %u, remove REPORT_URL
This removes the REPORT_URL string and message telling people to send me
their BIOS info. I've got a huge number of reports, and virtually all
show that EDD 3.0 is not supported, or if supported, is likely implemented
in ways contrary to the spec. In 2.7.x I may bring the REPORT_URL back once
I've got a better way to track the data being sent to me.
Also, this now reports the EDD geometry (if known) and number of
sectors using %u instead of %x, to be consistent with what is in 2.6.7
now.
edd.c | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
diff -Nru a/arch/i386/kernel/edd.c b/arch/i386/kernel/edd.c
--- a/arch/i386/kernel/edd.c 2004-06-23 07:03:00 -07:00
+++ b/arch/i386/kernel/edd.c 2004-06-23 07:03:00 -07:00
@@ -46,9 +46,8 @@
MODULE_DESCRIPTION("proc interface to BIOS EDD information");
MODULE_LICENSE("GPL");
-#define EDD_VERSION "0.10 2003-Dec-05"
+#define EDD_VERSION "0.11 2004-Jun-21"
#define EDD_DEVICE_NAME_SIZE 16
-#define REPORT_URL "http://domsch.com/linux/edd30/results.html"
#define left (count - (p - page) - 1)
@@ -312,10 +311,6 @@
}
out:
- p += snprintf(p, left, "\nPlease check %s\n", REPORT_URL);
- p += snprintf(p, left, "to see if this device has been reported. If not,\n");
- p += snprintf(p, left, "please send the information requested there.\n");
-
return proc_calc_metrics(page, start, off, count, eof, (p - page));
}
@@ -405,7 +400,7 @@
return proc_calc_metrics(page, start, off, count, eof, 0);
}
- p += snprintf(p, left, "0x%x\n", info->params.num_default_cylinders);
+ p += snprintf(p, left, "%u\n", info->params.num_default_cylinders);
return proc_calc_metrics(page, start, off, count, eof, (p - page));
}
@@ -418,7 +413,7 @@
return proc_calc_metrics(page, start, off, count, eof, 0);
}
- p += snprintf(p, left, "0x%x\n", info->params.num_default_heads);
+ p += snprintf(p, left, "%u\n", info->params.num_default_heads);
return proc_calc_metrics(page, start, off, count, eof, (p - page));
}
@@ -431,7 +426,7 @@
return proc_calc_metrics(page, start, off, count, eof, 0);
}
- p += snprintf(p, left, "0x%x\n", info->params.sectors_per_track);
+ p += snprintf(p, left, "%u\n", info->params.sectors_per_track);
return proc_calc_metrics(page, start, off, count, eof, (p - page));
}
@@ -444,7 +439,7 @@
return proc_calc_metrics(page, start, off, count, eof, 0);
}
- p += snprintf(p, left, "0x%llx\n", info->params.number_of_sectors);
+ p += snprintf(p, left, "%llu\n", info->params.number_of_sectors);
return proc_calc_metrics(page, start, off, count, eof, (p - page));
}
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-24" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic