Hi, 

    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);
    ......
}

The compiler says "warning: cast from pointer to integer of different size". 
The warning makes the compiling process returns with error. 
The based kernel source is snv_107 and running platform is also snv_107. 
The set->ks_data is one pointer, I want to print it's address out. 

struct _kcpc_set {
                ......
        uint64_t                *ks_data;       /* Data store for this set */
}; 

I don't think the case is one error. Can you give some suggestions?
thanks
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to