diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2012-03-01 02:35:20 -0500 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-05-11 04:08:13 -0400 |
commit | 0b0094e000840115b5baece2293c5fb1aab4fded (patch) | |
tree | de0179b4d859a31deb00d9d8ed2860f422313ee7 /net/batman-adv/bat_debugfs.c | |
parent | d7b2a97e03ad40c7986d3c2707b0b5ba79a63884 (diff) |
batman-adv: replace HZ calculations with jiffies_to_msecs()
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Acked-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/bat_debugfs.c')
-rw-r--r-- | net/batman-adv/bat_debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/bat_debugfs.c b/net/batman-adv/bat_debugfs.c index 916380c73ab..3b588f86d77 100644 --- a/net/batman-adv/bat_debugfs.c +++ b/net/batman-adv/bat_debugfs.c | |||
@@ -83,8 +83,8 @@ int debug_log(struct bat_priv *bat_priv, const char *fmt, ...) | |||
83 | 83 | ||
84 | va_start(args, fmt); | 84 | va_start(args, fmt); |
85 | vscnprintf(tmp_log_buf, sizeof(tmp_log_buf), fmt, args); | 85 | vscnprintf(tmp_log_buf, sizeof(tmp_log_buf), fmt, args); |
86 | fdebug_log(bat_priv->debug_log, "[%10lu] %s", | 86 | fdebug_log(bat_priv->debug_log, "[%10u] %s", |
87 | (jiffies / HZ), tmp_log_buf); | 87 | jiffies_to_msecs(jiffies), tmp_log_buf); |
88 | va_end(args); | 88 | va_end(args); |
89 | 89 | ||
90 | return 0; | 90 | return 0; |