PageRenderTime 26ms CodeModel.GetById 14ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/src/systm.c

http://rtems-atapi.googlecode.com/
C | 53 lines | 35 code | 14 blank | 4 comment | 0 complexity | b5a092d21864030d85b458dca42bed81 MD5 | raw file
 1
 2#include <stdio.h>
 3#include <sys/kernel.h> 
 4#include <sys/malloc.h> 
 5#include <sys/errno.h>
 6#include <rtems/bsd/sys/queue.h>
 7#include "../sys/quirk.h"
 8#include "../sys/device.h"
 9
10/*The aprint_*() functions have the following behaviour, based on the above mentioned flags:*/
11
12/*NetBSD:Sends to the console unless AB_QUIET is set.  Always sends to the log*/
13void aprint_normal(const char *fmt, ...){
14  printf(fmt);
15  return;
16}
17/*NetBSD: Sends to the console only if AB_VERBOSE is set. Always sends to the log*/
18void aprint_verbose(const char *fmt, ...){
19  printf(fmt);
20  return;
21}
22
23/*NetBSD:Sends to the console only if AB_VERBOSE is set. Always sends to the log*/
24void aprint_naive(const char *fmt, ...){
25  printf(fmt);
26  return;
27}
28
29void aprint_error_dev(device_t dv, const char *fmt, ...){
30  
31  printf("Device %s:", dv->dv_xname);
32  printf(fmt);
33  return;
34}
35
36void aprint_verbose_dev(device_t dv, const char *fmt, ...){
37  
38  printf("Device %s:", dv->dv_xname);
39  printf(fmt);
40  return;
41}
42
43int enodev(void){
44  
45  return ENODEV;
46  
47}
48
49int seltrue(void){
50  
51  return 0;
52  
53}