Skip to content

Commit

Permalink
try to fix printk
Browse files Browse the repository at this point in the history
  • Loading branch information
rdolbeau committed Jun 26, 2015
1 parent 30e763e commit a82e7fd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions module/zfs/vdev_raidz.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

#if defined(_KERNEL)
#include <linux/printk.h>
#include <linux/kernel.h>
#endif
#include <sys/zfs_context.h>
#include <sys/spa.h>
Expand Down Expand Up @@ -703,7 +703,8 @@ static void vdev_raidz_pick_parity_functions(void) {
&vdev_raidz_generate_parity_pq_avx2;
vdev_raidz_generate_parity_pqr =
&vdev_raidz_generate_parity_pqr_avx2;
printk("ZFS: using vdev_raidz_generate_parity_*_avx2\n");
printk(KERN_INFO \
"ZFS: using vdev_raidz_generate_parity_*_avx2\n");
} else
#endif
#if defined(_KERNEL) && defined(CONFIG_AS_AVX)
Expand All @@ -714,8 +715,8 @@ static void vdev_raidz_pick_parity_functions(void) {
&vdev_raidz_generate_parity_pq_avx128;
vdev_raidz_generate_parity_pqr =
&vdev_raidz_generate_parity_pqr_avx128;
printk("ZFS: using vdev_raidz_generate_parity_"\
"*_avx128\n");
printk(KERN_INFO \
"ZFS: using vdev_raidz_generate_parity_*_avx128\n");
} else
#endif
{
Expand All @@ -727,7 +728,8 @@ static void vdev_raidz_pick_parity_functions(void) {
vdev_raidz_generate_parity_pqr =
&vdev_raidz_generate_parity_pqr_sse;
#if defined(_KERNEL)
printk("ZFS: using vdev_raidz_generate_parity_*_sse\n");
printk(KERN_INFO \
"ZFS: using vdev_raidz_generate_parity_*_sse\n");
#endif
}
#endif
Expand Down

0 comments on commit a82e7fd

Please sign in to comment.