srm_puts.c 370 B

123456789101112131415161718192021222324
  1. /*
  2. * arch/alpha/lib/srm_puts.c
  3. */
  4. #include <linux/string.h>
  5. #include <asm/console.h>
  6. long
  7. srm_puts(const char *str, long len)
  8. {
  9. long remaining, written;
  10. if (!callback_init_done)
  11. return len;
  12. for (remaining = len; remaining > 0; remaining -= written)
  13. {
  14. written = callback_puts(0, str, remaining);
  15. written &= 0xffffffff;
  16. str += written;
  17. }
  18. return len;
  19. }