[PATCH] vmcore-dmesg: avoid allocating large memory chunk for log buf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 27, 2017 at 10:19 PM, Dave Young <dyoung at redhat.com> wrote:
> On 06/19/17 at 03:23pm, Cong Wang wrote:
>> -
>> -             /* Move to next record */
>> -             current_idx = log_next(buf, current_idx);
>> +             free(msg);
>> +             /* length == 0 indicates the end of the buffer; wrap */
>
> Since the code is restructured, above line can be dropped, other wise:

Yeah, I will improve that comment and send v2.

Thanks!



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux