]> Pileus Git - ~andy/linux/blobdiff - kernel/trace/trace_printk.c
tracing: show proper address for trace-printk format
[~andy/linux] / kernel / trace / trace_printk.c
index 7b627811082736e6cdb973b21f6f6ca5b623954f..687699d365aeb328eddaf619f04ccf10b1cc6b6c 100644 (file)
@@ -176,7 +176,7 @@ static int t_show(struct seq_file *m, void *v)
        const char *str = *fmt;
        int i;
 
-       seq_printf(m, "0x%lx : \"", (unsigned long)fmt);
+       seq_printf(m, "0x%lx : \"", *(unsigned long *)fmt);
 
        /*
         * Tabs and new lines need to be converted.