printk_once is fairly trivial - no matter how often you call it, it prints once and never again.