[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 53/66] kern/debug.c: initialize panicstr
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 53/66] kern/debug.c: initialize panicstr |
Date: |
Mon, 9 Dec 2013 00:17:19 +0900 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Marin Ramesa, le Thu 05 Dec 2013 22:03:47 +0100, a écrit :
> Variable that keeps the panic string. Initialize to NULL, meaning
> that the initial condition is that there is no panic string.
Again, that's already initialized to 0.
> * kern/debug.c (panicstr): Initialize to NULL.
>
> ---
> kern/debug.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kern/debug.c b/kern/debug.c
> index bdc87e2..8cd3f02 100644
> --- a/kern/debug.c
> +++ b/kern/debug.c
> @@ -125,7 +125,7 @@ void Debugger(message)
> boolean_t panic_lock_initialized = FALSE;
> decl_simple_lock_data(, panic_lock)
>
> -const char *panicstr;
> +const char *panicstr = NULL;
> int paniccpu;
>
> void
> --
> 1.8.1.4
>
>
--
Samuel
"...[Linux's] capacity to talk via any medium except smoke signals."
(By Dr. Greg Wettstein, Roger Maris Cancer Center)
- [PATCH 47/66] ipc/ipc_init.c: qualify constant with const, (continued)
- [PATCH 47/66] ipc/ipc_init.c: qualify constant with const, Marin Ramesa, 2013/12/05
- [PATCH 46/66] i386/intel/pmap.c: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 48/66] ipc/mach_port.c: use boolean instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 49/66] ipc/port.h: update comment, Marin Ramesa, 2013/12/05
- [PATCH 50/66] kern/act.c, act.h: comment unused variable, Marin Ramesa, 2013/12/05
- [PATCH 51/66] kern/act.h: remove prototype without definition, Marin Ramesa, 2013/12/05
- [PATCH 52/66] kern/debug.c: initialize the lock, Marin Ramesa, 2013/12/05
- [PATCH 53/66] kern/debug.c: initialize panicstr, Marin Ramesa, 2013/12/05
- Re: [PATCH 53/66] kern/debug.c: initialize panicstr,
Samuel Thibault <=
- [PATCH 54/66] kern/debug.c: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 55/66] kern/lock_mon.c: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 57/66] kern/lock_mon.c: remove dead assignments, Marin Ramesa, 2013/12/05
- [PATCH 56/66] kern/lock_mon.c: use spl_t instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 58/66] kern/pc_sample.c: remove unused variables, Marin Ramesa, 2013/12/05
- [PATCH 59/66] kern/priority.c: update comment, Marin Ramesa, 2013/12/05
- [PATCH 60/66] kern/rbtree.h: remove unnecessary include, Marin Ramesa, 2013/12/05
- [PATCH 64/66] Cleanup of the prototypes, Marin Ramesa, 2013/12/05
- [PATCH 65/66] kern/act.h: remove unnecessary include, Marin Ramesa, 2013/12/05