Skip to content

Commit b395f75

Browse files
antonblanchardneilbrown
authored andcommitted
lib/raid6: Add log level to printks
Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: NeilBrown <neilb@suse.de>
1 parent 6c144d3 commit b395f75

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎lib/raid6/algos.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ static inline const struct raid6_recov_calls *raid6_choose_recov(void)
121121
raid6_2data_recov = best->data2;
122122
raid6_datap_recov = best->datap;
123123

124-
printk("raid6: using %s recovery algorithm\n", best->name);
124+
pr_info("raid6: using %s recovery algorithm\n", best->name);
125125
} else
126-
printk("raid6: Yikes! No recovery algorithm found!\n");
126+
pr_err("raid6: Yikes! No recovery algorithm found!\n");
127127

128128
return best;
129129
}
@@ -157,18 +157,18 @@ static inline const struct raid6_calls *raid6_choose_gen(
157157
bestperf = perf;
158158
best = *algo;
159159
}
160-
printk("raid6: %-8s %5ld MB/s\n", (*algo)->name,
160+
pr_info("raid6: %-8s %5ld MB/s\n", (*algo)->name,
161161
(perf*HZ) >> (20-16+RAID6_TIME_JIFFIES_LG2));
162162
}
163163
}
164164

165165
if (best) {
166-
printk("raid6: using algorithm %s (%ld MB/s)\n",
166+
pr_info("raid6: using algorithm %s (%ld MB/s)\n",
167167
best->name,
168168
(bestperf*HZ) >> (20-16+RAID6_TIME_JIFFIES_LG2));
169169
raid6_call = *best;
170170
} else
171-
printk("raid6: Yikes! No algorithm found!\n");
171+
pr_err("raid6: Yikes! No algorithm found!\n");
172172

173173
return best;
174174
}
@@ -194,7 +194,7 @@ int __init raid6_select_algo(void)
194194
syndromes = (void *) __get_free_pages(GFP_KERNEL, 1);
195195

196196
if (!syndromes) {
197-
printk("raid6: Yikes! No memory available.\n");
197+
pr_err("raid6: Yikes! No memory available.\n");
198198
return -ENOMEM;
199199
}
200200

0 commit comments

Comments
 (0)