mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-01 02:29:03 +00:00
Merge pull request #1349 from oliverschmidt/master
Log web browser page attributes free memory left.
This commit is contained in:
commit
0105454524
@ -34,12 +34,14 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "ctk/ctk.h"
|
#include "ctk/ctk.h"
|
||||||
#include "ctk/ctk-textentry-cmdline.h"
|
#include "ctk/ctk-textentry-cmdline.h"
|
||||||
#include "contiki-net.h"
|
#include "contiki-net.h"
|
||||||
#include "lib/petsciiconv.h"
|
#include "lib/petsciiconv.h"
|
||||||
#include "sys/arg.h"
|
#include "sys/arg.h"
|
||||||
|
#include "sys/log.h"
|
||||||
#if WWW_CONF_WITH_WGET
|
#if WWW_CONF_WITH_WGET
|
||||||
#include "program-handler.h"
|
#include "program-handler.h"
|
||||||
#endif /* WWW_CONF_WITH_WGET */
|
#endif /* WWW_CONF_WITH_WGET */
|
||||||
@ -50,13 +52,6 @@
|
|||||||
|
|
||||||
#include "www.h"
|
#include "www.h"
|
||||||
|
|
||||||
#if 1
|
|
||||||
#define PRINTF(x)
|
|
||||||
#else
|
|
||||||
#include <stdio.h>
|
|
||||||
#define PRINTF(x) printf x
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* The array that holds the current URL. */
|
/* The array that holds the current URL. */
|
||||||
static char url[WWW_CONF_MAX_URLLEN + 1];
|
static char url[WWW_CONF_MAX_URLLEN + 1];
|
||||||
@ -299,6 +294,8 @@ end_page(char *status, void *focus)
|
|||||||
petsciiconv_topetscii(webpageptr - x, x);
|
petsciiconv_topetscii(webpageptr - x, x);
|
||||||
CTK_WIDGET_FOCUS(&mainwindow, focus);
|
CTK_WIDGET_FOCUS(&mainwindow, focus);
|
||||||
redraw_window();
|
redraw_window();
|
||||||
|
log_message("Page attribs free: ", itoa(pageattribs + sizeof(pageattribs) - pageattribptr,
|
||||||
|
pageattribs + sizeof(pageattribs) - 4, 10));
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
/* open_url():
|
/* open_url():
|
||||||
|
Loading…
Reference in New Issue
Block a user