aboutsummaryrefslogtreecommitdiff
path: root/kernel-features.c
diff options
context:
space:
mode:
authorAdam Litke <agl@us.ibm.com>2008-11-18 17:04:24 +0000
committerEric B Munson <ebmunson@us.ibm.com>2008-11-18 18:52:58 +0000
commit16c9f618efb631dff52cd2c9f2e698cd694086ad (patch)
treeef0a6d9d5c19a2c998dbad399099b9215396e955 /kernel-features.c
parent342dbefa14a77dd1528f271e856df437a391d3c9 (diff)
downloadlibhugetlbfs-16c9f618efb631dff52cd2c9f2e698cd694086ad.tar.gz
Audit verbosity of messages in the library utility functions (V2)
Changes since V1: - In the event that the normal default huge page size cannot be used by libhugetlbfs (due to no usable mount point), if the user specified the size print a WARNING (since semantics are altered), otherwise just print an INFO message. Signed-off-by: Adam Litke <agl@us.ibm.com> Signed-off-by: Eric B Munson <ebmunson@us.ibm.com>
Diffstat (limited to 'kernel-features.c')
-rw-r--r--kernel-features.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel-features.c b/kernel-features.c
index 5f20249..79c499c 100644
--- a/kernel-features.c
+++ b/kernel-features.c
@@ -47,14 +47,14 @@ static void debug_kernel_version(void)
{
struct kernel_version *ver = &running_kernel_version;
- DEBUG("Parsed kernel version: [%u] . [%u] . [%u] ",
+ INFO("Parsed kernel version: [%u] . [%u] . [%u] ",
ver->major, ver->minor, ver->release);
if (ver->post)
- DEBUG_CONT(" [post-release: %u]\n", ver->post);
+ INFO_CONT(" [post-release: %u]\n", ver->post);
else if (ver->pre)
- DEBUG_CONT(" [pre-release: %u]\n", ver->pre);
+ INFO_CONT(" [pre-release: %u]\n", ver->pre);
else
- DEBUG_CONT("\n");
+ INFO_CONT("\n");
}
static int str_to_ver(const char *str, struct kernel_version *ver)
@@ -241,12 +241,12 @@ void setup_features()
/* Has the user overridden feature detection? */
if (env && (pos = strstr(env, name))) {
- DEBUG("Overriding feature %s: ", name);
+ INFO("Overriding feature %s: ", name);
/* If feature is preceeded by 'no_' then turn it off */
if (((pos - 3) >= env) && !strncmp(pos - 3, "no_", 3))
- DEBUG_CONT("no\n");
+ INFO_CONT("no\n");
else {
- DEBUG_CONT("yes\n");
+ INFO_CONT("yes\n");
feature_mask |= (1UL << i);
}
continue;
@@ -254,7 +254,7 @@ void setup_features()
/* Is the running kernel version newer? */
if (ver_cmp(&running_kernel_version, &ver) >= 0) {
- DEBUG("Feature %s is present in this kernel\n",
+ INFO("Feature %s is present in this kernel\n",
kernel_features[i].name);
feature_mask |= (1UL << i);
}