From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: function snprintf() in xen_save_domain.c for debugged Date: Sun, 2 Feb 2014 11:00:44 +0100 Message-ID: <20140202100044.GA5898@aepfle.de> References: <1391331061.24599.YahooMailNeo@web161802.mail.bf1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1391331061.24599.YahooMailNeo@web161802.mail.bf1.yahoo.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Adel Amani Cc: Kai Huang , Ian Campbell , Xen List-Id: xen-devel@lists.xenproject.org On Sun, Feb 02, Adel Amani wrote: > I check this function xc_domain_save.c, and attention at line 1185, > function snprintf() amounts iter, sent_this_iter, skip_this_iter for > print. (in xen 4.1.2 ) but i don't know where in amounts print!!! :-( > Are except file xend.log where is another for print and debugged? The output in 4.1 is sent to xend.log, but only if a logger function is registered. Please follow the code from tools/xcutils/xc_save.c:main to the actual xc_report_progress_start call in tools/libxc/xc_domain_save.c, as you will note xc_interface_open is called without logger which means no output is printed. For an example how a logger could look like see the xc_interface_open call in tools/xenpaging/xenpaging.c. Olaf