X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=lib%2Fidr.c;h=bfe4db4e165f2941654e5ba551fbc8c3fe0a467c;hb=b247759642cc96a75122907cc898b4c43b4f86ce;hp=cca4b9302a710c5ef0e1a66355302040ada9d3d7;hpb=82ea4be61f45d1a7ba1f5151d90124d1ece0c07a;p=karo-tx-linux.git diff --git a/lib/idr.c b/lib/idr.c index cca4b9302a71..bfe4db4e165f 100644 --- a/lib/idr.c +++ b/lib/idr.c @@ -524,9 +524,7 @@ EXPORT_SYMBOL(idr_alloc_cyclic); static void idr_remove_warning(int id) { - printk(KERN_WARNING - "idr_remove called for id=%d which is not allocated.\n", id); - dump_stack(); + WARN(1, "idr_remove called for id=%d which is not allocated.\n", id); } static void sub_remove(struct idr *idp, int shift, int id) @@ -1064,8 +1062,7 @@ void ida_remove(struct ida *ida, int id) return; err: - printk(KERN_WARNING - "ida_remove called for id=%d which is not allocated.\n", id); + WARN(1, "ida_remove called for id=%d which is not allocated.\n", id); } EXPORT_SYMBOL(ida_remove);