On May 23, 2012, at 10:49 PM, 星言 墨虚 wrote:

> typedef struct {
> #ifdef WORDS_BIGENDIAN
>       uint32_t hi, lo;
> #else
>       uint32_t lo, hi;
> #endif
> } ovs_32aligned_u64;
> 
> I use printf("%lld", flow.bytes) to output this format, but it is wrong in 
> screen. And if I change lld to PRIx64, it is wrong too.
> 
> So I want to know how to output this format to decimal in screen?

The comment above the snippet you've pulled mentions that you need helper 
functions in "lib/unaligned.h".  Did you look there?  I suspect the function 
you need is get_32aligned_u64().

--Justin


_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to