X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fstate.h;h=f6793ebeb3ebdc4d5e5853afb13770fa8ff2aeff;hb=1aeb0ff5ba3ece6906cb4a64e3b2836d6b8e2c12;hp=1e6efb57c88dd05be6f16c342f3c838dd6875f05;hpb=90e19f82bca635a1ba52b8a50b64e484bd19c14f;p=lttv.git diff --git a/lttv/lttv/state.h b/lttv/lttv/state.h index 1e6efb57..f6793ebe 100644 --- a/lttv/lttv/state.h +++ b/lttv/lttv/state.h @@ -43,7 +43,7 @@ which events have been processed) and a pointer to the current process, in the process table, being run on that cpu. - For each process in the process table, various informations such as exec + For each process in the process table, various information such as exec file name, pid, ppid and creation time are stored. Each process state also contains an execution mode stack (e.g. irq within system call, called from user mode). */ @@ -470,6 +470,6 @@ static inline guint lttv_state_get_target_pid(LttvTracefileState *tfs) #define MINORMASK ((1U << MINORBITS) - 1) #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS)) #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK)) -#define MKDEV(ma,mi) (((ma) << MINORBITS) | (mi)) +#define MKDEV(ma, mi) ((((unsigned int) (ma)) << MINORBITS) | (unsigned int) (mi)) #endif // STATE_H