[email protected] wrote:

> >> >    I add some test codes to ../uts/common/os/kcpc.c. 
> >> >
> >> >int
> >> >kcpc_bind_thread(kcpc_set_t *set, kthread_t *t, int *subcode)
> >> >{
> >> >    ......
> >> >    /* new codes. */
> >> >    cmn_err(CE_NOTE, "ks_data = %" PRId64 ".\n", (uint64_t)set->ks_data);
> >> >    ......
> >> >}
> >>
> >> You're printing a pointer; you need to use "%p".
> >
> >Does the kernel printf support %p?
>
> Yes.

Then it still depends on whether a decimal output is required or desired as %p
usually prints a hex number.

Jörg

-- 
 EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
       [email protected]                (uni)  
       [email protected] (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to