Commit ec749f4e authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

xmllite/reader: Use consistent formatting for traces.

parent df012ba4
...@@ -2641,9 +2641,7 @@ static HRESULT reader_parse_nextnode(xmlreader *reader) ...@@ -2641,9 +2641,7 @@ static HRESULT reader_parse_nextnode(xmlreader *reader)
static HRESULT WINAPI xmlreader_QueryInterface(IXmlReader *iface, REFIID riid, void** ppvObject) static HRESULT WINAPI xmlreader_QueryInterface(IXmlReader *iface, REFIID riid, void** ppvObject)
{ {
xmlreader *This = impl_from_IXmlReader(iface); TRACE("%p, %s, %p.\n", iface, debugstr_guid(riid), ppvObject);
TRACE("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppvObject);
if (IsEqualGUID(riid, &IID_IUnknown) || if (IsEqualGUID(riid, &IID_IUnknown) ||
IsEqualGUID(riid, &IID_IXmlReader)) IsEqualGUID(riid, &IID_IXmlReader))
...@@ -2732,7 +2730,7 @@ static HRESULT WINAPI xmlreader_SetInput(IXmlReader* iface, IUnknown *input) ...@@ -2732,7 +2730,7 @@ static HRESULT WINAPI xmlreader_SetInput(IXmlReader* iface, IUnknown *input)
IXmlReaderInput *readerinput; IXmlReaderInput *readerinput;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%p)\n", This, input); TRACE("%p, %p.\n", iface, input);
if (This->input) if (This->input)
{ {
...@@ -2789,7 +2787,7 @@ static HRESULT WINAPI xmlreader_GetProperty(IXmlReader* iface, UINT property, LO ...@@ -2789,7 +2787,7 @@ static HRESULT WINAPI xmlreader_GetProperty(IXmlReader* iface, UINT property, LO
{ {
xmlreader *This = impl_from_IXmlReader(iface); xmlreader *This = impl_from_IXmlReader(iface);
TRACE("(%p)->(%s %p)\n", This, debugstr_reader_prop(property), value); TRACE("%p, %s, %p.\n", iface, debugstr_reader_prop(property), value);
if (!value) return E_INVALIDARG; if (!value) return E_INVALIDARG;
...@@ -2868,7 +2866,7 @@ static HRESULT WINAPI xmlreader_Read(IXmlReader* iface, XmlNodeType *nodetype) ...@@ -2868,7 +2866,7 @@ static HRESULT WINAPI xmlreader_Read(IXmlReader* iface, XmlNodeType *nodetype)
XmlNodeType type; XmlNodeType type;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%p)\n", This, nodetype); TRACE("%p, %p.\n", iface, nodetype);
if (!nodetype) if (!nodetype)
nodetype = &type; nodetype = &type;
...@@ -2905,7 +2903,7 @@ static HRESULT WINAPI xmlreader_GetNodeType(IXmlReader* iface, XmlNodeType *node ...@@ -2905,7 +2903,7 @@ static HRESULT WINAPI xmlreader_GetNodeType(IXmlReader* iface, XmlNodeType *node
{ {
xmlreader *This = impl_from_IXmlReader(iface); xmlreader *This = impl_from_IXmlReader(iface);
TRACE("(%p)->(%p)\n", This, node_type); TRACE("%p, %p.\n", iface, node_type);
if (!node_type) if (!node_type)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -2939,7 +2937,7 @@ static HRESULT WINAPI xmlreader_MoveToFirstAttribute(IXmlReader* iface) ...@@ -2939,7 +2937,7 @@ static HRESULT WINAPI xmlreader_MoveToFirstAttribute(IXmlReader* iface)
{ {
xmlreader *This = impl_from_IXmlReader(iface); xmlreader *This = impl_from_IXmlReader(iface);
TRACE("(%p)\n", This); TRACE("%p.\n", iface);
return reader_move_to_first_attribute(This); return reader_move_to_first_attribute(This);
} }
...@@ -2949,7 +2947,7 @@ static HRESULT WINAPI xmlreader_MoveToNextAttribute(IXmlReader* iface) ...@@ -2949,7 +2947,7 @@ static HRESULT WINAPI xmlreader_MoveToNextAttribute(IXmlReader* iface)
xmlreader *This = impl_from_IXmlReader(iface); xmlreader *This = impl_from_IXmlReader(iface);
const struct list *next; const struct list *next;
TRACE("(%p)\n", This); TRACE("%p.\n", iface);
if (!This->attr_count) return S_FALSE; if (!This->attr_count) return S_FALSE;
...@@ -3030,7 +3028,7 @@ static HRESULT WINAPI xmlreader_MoveToAttributeByName(IXmlReader* iface, ...@@ -3030,7 +3028,7 @@ static HRESULT WINAPI xmlreader_MoveToAttributeByName(IXmlReader* iface,
UINT target_name_len, target_uri_len; UINT target_name_len, target_uri_len;
struct attribute *attr; struct attribute *attr;
TRACE("(%p)->(%s %s)\n", This, debugstr_w(local_name), debugstr_w(namespace_uri)); TRACE("%p, %s, %s.\n", iface, debugstr_w(local_name), debugstr_w(namespace_uri));
if (!local_name) if (!local_name)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -3067,7 +3065,7 @@ static HRESULT WINAPI xmlreader_MoveToElement(IXmlReader* iface) ...@@ -3067,7 +3065,7 @@ static HRESULT WINAPI xmlreader_MoveToElement(IXmlReader* iface)
{ {
xmlreader *This = impl_from_IXmlReader(iface); xmlreader *This = impl_from_IXmlReader(iface);
TRACE("(%p)\n", This); TRACE("%p.\n", iface);
if (!This->attr_count) return S_FALSE; if (!This->attr_count) return S_FALSE;
...@@ -3101,7 +3099,7 @@ static HRESULT WINAPI xmlreader_GetQualifiedName(IXmlReader* iface, LPCWSTR *nam ...@@ -3101,7 +3099,7 @@ static HRESULT WINAPI xmlreader_GetQualifiedName(IXmlReader* iface, LPCWSTR *nam
struct element *element; struct element *element;
UINT length; UINT length;
TRACE("(%p)->(%p %p)\n", This, name, len); TRACE("%p, %p, %p.\n", iface, name, len);
if (!len) if (!len)
len = &length; len = &length;
...@@ -3170,7 +3168,7 @@ static HRESULT WINAPI xmlreader_GetNamespaceUri(IXmlReader* iface, const WCHAR * ...@@ -3170,7 +3168,7 @@ static HRESULT WINAPI xmlreader_GetNamespaceUri(IXmlReader* iface, const WCHAR *
struct ns *ns; struct ns *ns;
UINT length; UINT length;
TRACE("(%p %p %p)\n", iface, uri, len); TRACE("%p, %p, %p.\n", iface, uri, len);
if (!len) if (!len)
len = &length; len = &length;
...@@ -3224,7 +3222,7 @@ static HRESULT WINAPI xmlreader_GetLocalName(IXmlReader* iface, LPCWSTR *name, U ...@@ -3224,7 +3222,7 @@ static HRESULT WINAPI xmlreader_GetLocalName(IXmlReader* iface, LPCWSTR *name, U
struct element *element; struct element *element;
UINT length; UINT length;
TRACE("(%p)->(%p %p)\n", This, name, len); TRACE("%p, %p, %p.\n", iface, name, len);
if (!len) if (!len)
len = &length; len = &length;
...@@ -3262,7 +3260,7 @@ static HRESULT WINAPI xmlreader_GetPrefix(IXmlReader* iface, const WCHAR **ret, ...@@ -3262,7 +3260,7 @@ static HRESULT WINAPI xmlreader_GetPrefix(IXmlReader* iface, const WCHAR **ret,
XmlNodeType nodetype; XmlNodeType nodetype;
UINT length; UINT length;
TRACE("(%p)->(%p %p)\n", This, ret, len); TRACE("%p, %p, %p.\n", iface, ret, len);
if (!len) if (!len)
len = &length; len = &length;
...@@ -3349,7 +3347,7 @@ static HRESULT WINAPI xmlreader_GetValue(IXmlReader* iface, const WCHAR **value, ...@@ -3349,7 +3347,7 @@ static HRESULT WINAPI xmlreader_GetValue(IXmlReader* iface, const WCHAR **value,
const strval *val = &reader->strvalues[StringValue_Value]; const strval *val = &reader->strvalues[StringValue_Value];
UINT off; UINT off;
TRACE("(%p)->(%p %p)\n", reader, value, len); TRACE("%p, %p, %p.\n", iface, value, len);
*value = NULL; *value = NULL;
...@@ -3383,7 +3381,7 @@ static HRESULT WINAPI xmlreader_ReadValueChunk(IXmlReader* iface, WCHAR *buffer, ...@@ -3383,7 +3381,7 @@ static HRESULT WINAPI xmlreader_ReadValueChunk(IXmlReader* iface, WCHAR *buffer,
const strval *val; const strval *val;
UINT len = 0; UINT len = 0;
TRACE("(%p)->(%p %u %p)\n", reader, buffer, chunk_size, read); TRACE("%p, %p, %u, %p.\n", iface, buffer, chunk_size, read);
val = reader_get_value(reader, FALSE); val = reader_get_value(reader, FALSE);
...@@ -3408,20 +3406,22 @@ static HRESULT WINAPI xmlreader_GetBaseUri(IXmlReader* iface, ...@@ -3408,20 +3406,22 @@ static HRESULT WINAPI xmlreader_GetBaseUri(IXmlReader* iface,
LPCWSTR *baseUri, LPCWSTR *baseUri,
UINT *baseUri_length) UINT *baseUri_length)
{ {
FIXME("(%p %p %p): stub\n", iface, baseUri, baseUri_length); FIXME("%p, %p, %p: stub\n", iface, baseUri, baseUri_length);
return E_NOTIMPL; return E_NOTIMPL;
} }
static BOOL WINAPI xmlreader_IsDefault(IXmlReader* iface) static BOOL WINAPI xmlreader_IsDefault(IXmlReader* iface)
{ {
FIXME("(%p): stub\n", iface); FIXME("%p: stub\n", iface);
return FALSE; return FALSE;
} }
static BOOL WINAPI xmlreader_IsEmptyElement(IXmlReader* iface) static BOOL WINAPI xmlreader_IsEmptyElement(IXmlReader* iface)
{ {
xmlreader *This = impl_from_IXmlReader(iface); xmlreader *This = impl_from_IXmlReader(iface);
TRACE("(%p)\n", This);
TRACE("%p.\n", iface);
/* Empty elements are not placed in stack, it's stored as a global reader flag that makes sense /* Empty elements are not placed in stack, it's stored as a global reader flag that makes sense
when current node is start tag of an element */ when current node is start tag of an element */
return (reader_get_nodetype(This) == XmlNodeType_Element) ? This->is_empty_element : FALSE; return (reader_get_nodetype(This) == XmlNodeType_Element) ? This->is_empty_element : FALSE;
...@@ -3432,7 +3432,7 @@ static HRESULT WINAPI xmlreader_GetLineNumber(IXmlReader* iface, UINT *line_numb ...@@ -3432,7 +3432,7 @@ static HRESULT WINAPI xmlreader_GetLineNumber(IXmlReader* iface, UINT *line_numb
xmlreader *This = impl_from_IXmlReader(iface); xmlreader *This = impl_from_IXmlReader(iface);
const struct element *element; const struct element *element;
TRACE("(%p %p)\n", This, line_number); TRACE("%p, %p.\n", iface, line_number);
if (!line_number) if (!line_number)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -3464,7 +3464,7 @@ static HRESULT WINAPI xmlreader_GetLinePosition(IXmlReader* iface, UINT *line_po ...@@ -3464,7 +3464,7 @@ static HRESULT WINAPI xmlreader_GetLinePosition(IXmlReader* iface, UINT *line_po
xmlreader *This = impl_from_IXmlReader(iface); xmlreader *This = impl_from_IXmlReader(iface);
const struct element *element; const struct element *element;
TRACE("(%p %p)\n", This, line_position); TRACE("%p, %p.\n", iface, line_position);
if (!line_position) if (!line_position)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -3495,7 +3495,7 @@ static HRESULT WINAPI xmlreader_GetAttributeCount(IXmlReader* iface, UINT *count ...@@ -3495,7 +3495,7 @@ static HRESULT WINAPI xmlreader_GetAttributeCount(IXmlReader* iface, UINT *count
{ {
xmlreader *This = impl_from_IXmlReader(iface); xmlreader *This = impl_from_IXmlReader(iface);
TRACE("(%p)->(%p)\n", This, count); TRACE("%p, %p.\n", iface, count);
if (!count) return E_INVALIDARG; if (!count) return E_INVALIDARG;
...@@ -3506,7 +3506,9 @@ static HRESULT WINAPI xmlreader_GetAttributeCount(IXmlReader* iface, UINT *count ...@@ -3506,7 +3506,9 @@ static HRESULT WINAPI xmlreader_GetAttributeCount(IXmlReader* iface, UINT *count
static HRESULT WINAPI xmlreader_GetDepth(IXmlReader* iface, UINT *depth) static HRESULT WINAPI xmlreader_GetDepth(IXmlReader* iface, UINT *depth)
{ {
xmlreader *This = impl_from_IXmlReader(iface); xmlreader *This = impl_from_IXmlReader(iface);
TRACE("(%p)->(%p)\n", This, depth);
TRACE("%p, %p.\n", iface, depth);
*depth = This->depth; *depth = This->depth;
return S_OK; return S_OK;
} }
...@@ -3514,7 +3516,9 @@ static HRESULT WINAPI xmlreader_GetDepth(IXmlReader* iface, UINT *depth) ...@@ -3514,7 +3516,9 @@ static HRESULT WINAPI xmlreader_GetDepth(IXmlReader* iface, UINT *depth)
static BOOL WINAPI xmlreader_IsEOF(IXmlReader* iface) static BOOL WINAPI xmlreader_IsEOF(IXmlReader* iface)
{ {
xmlreader *This = impl_from_IXmlReader(iface); xmlreader *This = impl_from_IXmlReader(iface);
TRACE("(%p)\n", iface);
TRACE("%p.\n", iface);
return This->state == XmlReadState_EndOfFile; return This->state == XmlReadState_EndOfFile;
} }
...@@ -3551,9 +3555,7 @@ static const struct IXmlReaderVtbl xmlreader_vtbl = ...@@ -3551,9 +3555,7 @@ static const struct IXmlReaderVtbl xmlreader_vtbl =
/** IXmlReaderInput **/ /** IXmlReaderInput **/
static HRESULT WINAPI xmlreaderinput_QueryInterface(IXmlReaderInput *iface, REFIID riid, void** ppvObject) static HRESULT WINAPI xmlreaderinput_QueryInterface(IXmlReaderInput *iface, REFIID riid, void** ppvObject)
{ {
xmlreaderinput *This = impl_from_IXmlReaderInput(iface); TRACE("%p, %s, %p.\n", iface, debugstr_guid(riid), ppvObject);
TRACE("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppvObject);
if (IsEqualGUID(riid, &IID_IXmlReaderInput) || if (IsEqualGUID(riid, &IID_IXmlReaderInput) ||
IsEqualGUID(riid, &IID_IUnknown)) IsEqualGUID(riid, &IID_IUnknown))
...@@ -3614,7 +3616,7 @@ HRESULT WINAPI CreateXmlReader(REFIID riid, void **obj, IMalloc *imalloc) ...@@ -3614,7 +3616,7 @@ HRESULT WINAPI CreateXmlReader(REFIID riid, void **obj, IMalloc *imalloc)
HRESULT hr; HRESULT hr;
int i; int i;
TRACE("(%s, %p, %p)\n", wine_dbgstr_guid(riid), obj, imalloc); TRACE("%s, %p, %p.\n", wine_dbgstr_guid(riid), obj, imalloc);
if (!(reader = m_alloc(imalloc, sizeof(*reader)))) if (!(reader = m_alloc(imalloc, sizeof(*reader))))
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment