/src/systm.c

http://rtems-atapi.googlecode.com/ · C · 53 lines · 35 code · 14 blank · 4 comment · 0 complexity · b5a092d21864030d85b458dca42bed81 MD5 · raw file

  1. #include <stdio.h>
  2. #include <sys/kernel.h>
  3. #include <sys/malloc.h>
  4. #include <sys/errno.h>
  5. #include <rtems/bsd/sys/queue.h>
  6. #include "../sys/quirk.h"
  7. #include "../sys/device.h"
  8. /*The aprint_*() functions have the following behaviour, based on the above mentioned flags:*/
  9. /*NetBSD:Sends to the console unless AB_QUIET is set. Always sends to the log*/
  10. void aprint_normal(const char *fmt, ...){
  11. printf(fmt);
  12. return;
  13. }
  14. /*NetBSD: Sends to the console only if AB_VERBOSE is set. Always sends to the log*/
  15. void aprint_verbose(const char *fmt, ...){
  16. printf(fmt);
  17. return;
  18. }
  19. /*NetBSD:Sends to the console only if AB_VERBOSE is set. Always sends to the log*/
  20. void aprint_naive(const char *fmt, ...){
  21. printf(fmt);
  22. return;
  23. }
  24. void aprint_error_dev(device_t dv, const char *fmt, ...){
  25. printf("Device %s:", dv->dv_xname);
  26. printf(fmt);
  27. return;
  28. }
  29. void aprint_verbose_dev(device_t dv, const char *fmt, ...){
  30. printf("Device %s:", dv->dv_xname);
  31. printf(fmt);
  32. return;
  33. }
  34. int enodev(void){
  35. return ENODEV;
  36. }
  37. int seltrue(void){
  38. return 0;
  39. }