<div dir="ltr"><div><div><div><div>Hi,<br><br></div>gf_msg() function might be helpful here for you.<br><br></div>Ex:<br>gf_msg ("DEBUG", GF_LOG_INFO, 0,0,"Test Print: Value = %d",val);<br><br></div>Regards,<br></div>Sunil<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 22, 2017 at 5:16 PM, Tahereh Fattahi <span dir="ltr"><<a href="mailto:t28.fattahi@gmail.com" target="_blank">t28.fattahi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><br><br><div dir="ltr">Hello<div>I want to undrestand the operation of dht translator, then i decide to debug the code for this aim.</div><div>But i can not do that:(</div><div>I think i should run gdb in client side, but how? I can not mount the file system for client from gdb. And if I mount seperately, I can not run any glusterfs within gdb</div><div>Is there any way to not using gdb and debug with printf (Iknow it is very stupid but is easy) and see the serult in the terminal? </div></div>
</div><br></div>
<br>______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br></blockquote></div><br></div>