@@ -80,15 +80,15 @@ void *mbed_mem_trace_malloc(void *res, size_t size, void *caller);
80
80
* @param res the result of running 'realloc'.
81
81
* @param ptr the 'ptr' argument given to 'realloc'.
82
82
* @param size the 'size' argument given to 'realloc'.
83
- *
83
+ * @param caller the caller of the memory operation.
84
84
* @return 'res' (the first argument).
85
85
*/
86
86
void * mbed_mem_trace_realloc (void * res , void * ptr , size_t size , void * caller );
87
87
88
88
/**
89
89
* Trace a call to 'calloc'.
90
90
* @param res the result of running 'calloc'.
91
- * @param nmemb the 'nmemb' argument given to 'calloc'.
91
+ * @param num the 'nmemb' argument given to 'calloc'.
92
92
* @param size the 'size' argument given to 'calloc'.
93
93
* @param caller the caller of the memory operation.
94
94
* @return 'res' (the first argument).
@@ -108,13 +108,13 @@ void mbed_mem_trace_free(void *ptr, void *caller);
108
108
*
109
109
* The default callback outputs trace data using 'printf', in a format that's
110
110
* easily parsable by an external tool. For each memory operation, the callback
111
- * outputs a line that begins with ' #<op>:<0xresult>;<0xcaller>-' :
111
+ * outputs a line that begins with " #<op>:<0xresult>;<0xcaller>-" :
112
112
*
113
113
* - 'op' identifies the memory operation ('m' for 'malloc', 'r' for 'realloc',
114
114
* 'c' for 'calloc' and 'f' for 'free').
115
115
* - 'result' (base 16) is the result of the memor operation. This is always NULL
116
116
* for 'free', since 'free' doesn't return anything.
117
- * -'caller' (base 16) is the caller of the memory operation. Note that the value
117
+ * - 'caller' (base 16) is the caller of the memory operation. Note that the value
118
118
* of 'caller' might be unreliable.
119
119
*
120
120
* The rest of the output depends on the operation being traced:
@@ -126,9 +126,9 @@ void mbed_mem_trace_free(void *ptr, void *caller);
126
126
*
127
127
* Examples:
128
128
*
129
- * - ' #m:0x20003240;0x600d-50' encodes a 'malloc' that returned 0x20003240, was called
129
+ * - " #m:0x20003240;0x600d-50" encodes a 'malloc' that returned 0x20003240, was called
130
130
* by the instruction at 0x600D with a the 'size' argument equal to 50.
131
- * - ' #f:0x0;0x602f-0x20003240' encodes a 'free' that was called by the instruction at
131
+ * - " #f:0x0;0x602f-0x20003240" encodes a 'free' that was called by the instruction at
132
132
* 0x602f with the 'ptr' argument equal to 0x20003240.
133
133
*/
134
134
void mbed_mem_trace_default_callback (uint8_t op , void * res , void * caller , ...);
0 commit comments