printf in top.c
Guillermo Rodriguez Garcia
guille.rodriguez at gmail.com
Wed Jun 3 07:05:40 UTC 2015
Are you sure you are running your patched version of top and not the
original one?
El miércoles, 3 de junio de 2015, Wei, Catherine <Catherine.Wei at arris.com>
escribió:
> Hi:
> Lately I'm trying to debug the top command in an embedded linux
> box. I've added some printf in top.c, for example:
>
> fprintf(stderr,"catherine %lu %lu %lu %lu %lu
> %lu\n",used,mfree,shared,buffers,cached,total);
> printf("catherine--------------------------------------");
>
> in many place, even in the beginning of top_main() function, after
> building it, I copied the busybox bin file to my box, and the print log
> can not be printed out. I don't know why. Do I need some special config
> to build it? Could you please give me some advice? Thank you.
>
> By the way, the purpose that I'm debugging top command is that some
> memory display information is not right due to the change of
> /proc/meminfo, we may need to make a patch for busybox in our system.
>
> Best regard
> Catherine
> _______________________________________________
> busybox mailing list
> busybox at busybox.net <javascript:;>
> http://lists.busybox.net/mailman/listinfo/busybox
>
--
Guillermo Rodriguez Garcia
guille.rodriguez at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20150603/905edd09/attachment.html>
More information about the busybox
mailing list