}
 EXPORT_SYMBOL(seq_printf);
 
+#ifdef CONFIG_BINARY_PRINTF
+void seq_bprintf(struct seq_file *m, const char *f, const u32 *binary)
+{
+       int len;
+
+       if (m->count < m->size) {
+               len = bstr_printf(m->buf + m->count, m->size - m->count, f,
+                                 binary);
+               if (m->count + len < m->size) {
+                       m->count += len;
+                       return;
+               }
+       }
+       seq_set_overflow(m);
+}
+EXPORT_SYMBOL(seq_bprintf);
+#endif /* CONFIG_BINARY_PRINTF */
+
 /**
  *     mangle_path -   mangle and copy path to buffer beginning
  *     @s: buffer start
 
 int seq_open_private(struct file *, const struct seq_operations *, int);
 int seq_release_private(struct inode *, struct file *);
 
+#ifdef CONFIG_BINARY_PRINTF
+void seq_bprintf(struct seq_file *m, const char *f, const u32 *binary);
+#endif
+
 #define DEFINE_SEQ_ATTRIBUTE(__name)                                   \
 static int __name ## _open(struct inode *inode, struct file *file)     \
 {                                                                      \