Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
08fc7764
Commit
08fc7764
authored
Aug 04, 2002
by
Cory Watson
Committed by
Jeff Garzik
Aug 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add KERN_xxx prefixes to printk's in kernel/ subdir.
parent
36dec0f4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
kernel/dma.c
kernel/dma.c
+2
-2
kernel/panic.c
kernel/panic.c
+1
-1
kernel/resource.c
kernel/resource.c
+1
-1
kernel/signal.c
kernel/signal.c
+4
-4
kernel/timer.c
kernel/timer.c
+1
-1
No files found.
kernel/dma.c
View file @
08fc7764
...
@@ -98,12 +98,12 @@ int request_dma(unsigned int dmanr, const char * device_id)
...
@@ -98,12 +98,12 @@ int request_dma(unsigned int dmanr, const char * device_id)
void
free_dma
(
unsigned
int
dmanr
)
void
free_dma
(
unsigned
int
dmanr
)
{
{
if
(
dmanr
>=
MAX_DMA_CHANNELS
)
{
if
(
dmanr
>=
MAX_DMA_CHANNELS
)
{
printk
(
"Trying to free DMA%d
\n
"
,
dmanr
);
printk
(
KERN_WARNING
"Trying to free DMA%d
\n
"
,
dmanr
);
return
;
return
;
}
}
if
(
xchg
(
&
dma_chan_busy
[
dmanr
].
lock
,
0
)
==
0
)
{
if
(
xchg
(
&
dma_chan_busy
[
dmanr
].
lock
,
0
)
==
0
)
{
printk
(
"Trying to free free DMA%d
\n
"
,
dmanr
);
printk
(
KERN_WARNING
"Trying to free free DMA%d
\n
"
,
dmanr
);
return
;
return
;
}
}
...
...
kernel/panic.c
View file @
08fc7764
...
@@ -88,7 +88,7 @@ NORET_TYPE void panic(const char * fmt, ...)
...
@@ -88,7 +88,7 @@ NORET_TYPE void panic(const char * fmt, ...)
extern
int
stop_a_enabled
;
extern
int
stop_a_enabled
;
/* Make sure the user can actually press L1-A */
/* Make sure the user can actually press L1-A */
stop_a_enabled
=
1
;
stop_a_enabled
=
1
;
printk
(
"Press L1-A to return to the boot prom
\n
"
);
printk
(
KERN_EMERG
"Press L1-A to return to the boot prom
\n
"
);
}
}
#endif
#endif
#if defined(CONFIG_ARCH_S390)
#if defined(CONFIG_ARCH_S390)
...
...
kernel/resource.c
View file @
08fc7764
...
@@ -290,7 +290,7 @@ void __release_region(struct resource *parent, unsigned long start, unsigned lon
...
@@ -290,7 +290,7 @@ void __release_region(struct resource *parent, unsigned long start, unsigned lon
}
}
p
=
&
res
->
sibling
;
p
=
&
res
->
sibling
;
}
}
printk
(
"Trying to free nonexistent resource <%08lx-%08lx>
\n
"
,
start
,
end
);
printk
(
KERN_WARNING
"Trying to free nonexistent resource <%08lx-%08lx>
\n
"
,
start
,
end
);
}
}
/*
/*
...
...
kernel/signal.c
View file @
08fc7764
...
@@ -270,7 +270,7 @@ dequeue_signal(sigset_t *mask, siginfo_t *info)
...
@@ -270,7 +270,7 @@ dequeue_signal(sigset_t *mask, siginfo_t *info)
int
sig
=
0
;
int
sig
=
0
;
#if DEBUG_SIG
#if DEBUG_SIG
printk
(
"SIG dequeue (%s:%d): %d "
,
current
->
comm
,
current
->
pid
,
printk
(
KERN_DEBUG
"SIG dequeue (%s:%d): %d "
,
current
->
comm
,
current
->
pid
,
signal_pending
(
current
));
signal_pending
(
current
));
#endif
#endif
...
@@ -294,7 +294,7 @@ printk("SIG dequeue (%s:%d): %d ", current->comm, current->pid,
...
@@ -294,7 +294,7 @@ printk("SIG dequeue (%s:%d): %d ", current->comm, current->pid,
recalc_sigpending
();
recalc_sigpending
();
#if DEBUG_SIG
#if DEBUG_SIG
printk
(
" %d -> %d
\n
"
,
signal_pending
(
current
),
sig
);
printk
(
KERN_DEBUG
" %d -> %d
\n
"
,
signal_pending
(
current
),
sig
);
#endif
#endif
return
sig
;
return
sig
;
...
@@ -536,7 +536,7 @@ send_sig_info(int sig, struct siginfo *info, struct task_struct *t)
...
@@ -536,7 +536,7 @@ send_sig_info(int sig, struct siginfo *info, struct task_struct *t)
#if DEBUG_SIG
#if DEBUG_SIG
printk
(
"SIG queue (%s:%d): %d "
,
t
->
comm
,
t
->
pid
,
sig
);
printk
(
KERN_DEBUG
"SIG queue (%s:%d): %d "
,
t
->
comm
,
t
->
pid
,
sig
);
#endif
#endif
ret
=
-
EINVAL
;
ret
=
-
EINVAL
;
...
@@ -577,7 +577,7 @@ printk("SIG queue (%s:%d): %d ", t->comm, t->pid, sig);
...
@@ -577,7 +577,7 @@ printk("SIG queue (%s:%d): %d ", t->comm, t->pid, sig);
spin_unlock_irqrestore
(
&
t
->
sigmask_lock
,
flags
);
spin_unlock_irqrestore
(
&
t
->
sigmask_lock
,
flags
);
out_nolock:
out_nolock:
#if DEBUG_SIG
#if DEBUG_SIG
printk
(
" %d -> %d
\n
"
,
signal_pending
(
t
),
ret
);
printk
(
KERN_DEBUG
" %d -> %d
\n
"
,
signal_pending
(
t
),
ret
);
#endif
#endif
return
ret
;
return
ret
;
...
...
kernel/timer.c
View file @
08fc7764
...
@@ -194,7 +194,7 @@ void add_timer(struct timer_list *timer)
...
@@ -194,7 +194,7 @@ void add_timer(struct timer_list *timer)
return
;
return
;
bug:
bug:
spin_unlock_irqrestore
(
&
timerlist_lock
,
flags
);
spin_unlock_irqrestore
(
&
timerlist_lock
,
flags
);
printk
(
"bug
: kernel timer added twice at %p.
\n
"
,
printk
(
KERN_ERR
"BUG
: kernel timer added twice at %p.
\n
"
,
__builtin_return_address
(
0
));
__builtin_return_address
(
0
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment