[CRIU] Re: [PATCH 6/8] show: UNIX sockets queue support
Kinsbursky Stanislav
skinsbursky at openvz.org
Tue Feb 28 06:43:11 EST 2012
28.02.2012 15:41, Pavel Emelyanov пишет:
>> +int show_sk_queues(int fd)
>> +{
>> + struct sk_packet_entry pe;
>> + int ret;
>> +
>> + while (1) {
>> + ret = read_img_eof(fd,&pe);
>> + if (ret<= 0)
>> + return ret;
>> +
>> + pr_info("pkt for %u length %u bytes\n",
>> + pe.id_for, pe.length);
>> +
>> + ret = read_img_buf(fd, buf, pe.length);
>> + if (ret< 0)
>> + return ret;
>> +
>> + pr_info("\t`-[%*s]\n", pe.length, buf);
> I'd prefer seeing the packet contents in a way similar to how the
> pages' data is shown.
This is your code, Pavel.
Please, provide the one you wantm and then I'll replace.
--
Best regards,
Stanislav Kinsbursky
More information about the CRIU
mailing list