diff options
Diffstat (limited to 'lib/idr.c')
-rw-r--r-- | lib/idr.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -524,9 +524,7 @@ EXPORT_SYMBOL(idr_alloc_cyclic); | |||
524 | 524 | ||
525 | static void idr_remove_warning(int id) | 525 | static void idr_remove_warning(int id) |
526 | { | 526 | { |
527 | printk(KERN_WARNING | 527 | WARN(1, "idr_remove called for id=%d which is not allocated.\n", id); |
528 | "idr_remove called for id=%d which is not allocated.\n", id); | ||
529 | dump_stack(); | ||
530 | } | 528 | } |
531 | 529 | ||
532 | static void sub_remove(struct idr *idp, int shift, int id) | 530 | static void sub_remove(struct idr *idp, int shift, int id) |
@@ -1064,8 +1062,7 @@ void ida_remove(struct ida *ida, int id) | |||
1064 | return; | 1062 | return; |
1065 | 1063 | ||
1066 | err: | 1064 | err: |
1067 | printk(KERN_WARNING | 1065 | WARN(1, "ida_remove called for id=%d which is not allocated.\n", id); |
1068 | "ida_remove called for id=%d which is not allocated.\n", id); | ||
1069 | } | 1066 | } |
1070 | EXPORT_SYMBOL(ida_remove); | 1067 | EXPORT_SYMBOL(ida_remove); |
1071 | 1068 | ||