summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--listen/listen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/listen/listen.c b/listen/listen.c
index 29fa53f..7053412 100644
--- a/listen/listen.c
+++ b/listen/listen.c
@@ -52,9 +52,11 @@ static char * ts_format(unsigned int sec, unsigned int usec)
static char buf[sizeof("00:00:00.000000")];
unsigned int hours, minutes, seconds;
- hours = sec / 3600;
- minutes = (sec % 3600) / 60;
seconds = sec % 60;
+ sec = sec / 60;
+ minutes = sec % 60;
+ sec = sec / 60;
+ hours = sec % 24;
/*
* The real purpose of these checks is to let GCC figure out the
e7e8b632d8e564ba494dfa61358ac1a97e4ceb The JEDEC MMC v4 spec defines a new PRV value in place of the original fwrev and hwrev specified in v1. We can expose this in the kernel to enable user space to more easily determine the product revision of a given MMC. Signed-off-by: Bernie Thompson <bhthompson@chromium.org> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <cjb@laptop.org>
The JEDEC MMC v4 spec defines a new PRV value in place of the original
fwrev and hwrev specified in v1. We can expose this in the kernel to enable
user space to more easily determine the product revision of a given MMC.

Signed-off-by: Bernie Thompson <bhthompson@chromium.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
mmc: core: Extend sysfs to ext_csd parameters for RPMB support 2012-12-06T18:54:48+00:00 Loic Pallardy loic.pallardy-ext@stericsson.com 2012-08-06T15:12:29+00:00 188cc0424e9bd7733ee3e412da6df2cf42701061 Extend current sysfs access to ext_csd rpmb parameters (RPMB partition size) and rel_sector information. Signed-off-by: Loic Pallardy <loic.pallardy@stericsson.com> Reviewed-by: Namjae Jeon <linkinjeon@gmail.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Johan Rudholm <johan.rudholm@stericsson.com> Acked-by: Krishna Konda <kkonda@codeaurora.org> Signed-off-by: Chris Ball <cjb@laptop.org>
Extend current sysfs access to ext_csd rpmb parameters (RPMB partition
size) and rel_sector information.

Signed-off-by: Loic Pallardy <loic.pallardy@stericsson.com>
Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Johan Rudholm <johan.rudholm@stericsson.com>
Acked-by: Krishna Konda <kkonda@codeaurora.org>
Signed-off-by: Chris Ball <cjb@laptop.org>