]> granicus.if.org Git - postgis/commitdiff
Fixed a debugging function output bug
authorSandro Santilli <strk@keybit.net>
Sun, 17 Oct 2004 12:43:32 +0000 (12:43 +0000)
committerSandro Santilli <strk@keybit.net>
Sun, 17 Oct 2004 12:43:32 +0000 (12:43 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1025 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwline.c

index f0ec7084d76fb7d20cfe3714e89b1aa2abc901e2..9563bba87c6e5df364caab4776ea6d6309885724 100644 (file)
@@ -125,7 +125,7 @@ lwline_serialize_buf(LWLINE *line, char *buf, size_t *retsize)
 
        if ( ptsize != sizeof(double)*TYPE_NDIMS(line->type) )
        {
-               lwerror("lwline_serialize_buf: line has %d dims, its pointarray has %d dims");
+               lwerror("lwline_serialize_buf: line has %d dims, its pointarray has %d dims", TYPE_NDIMS(line->type), TYPE_NDIMS(line->points->dims));
        }
 
 #ifdef DEBUG_CALLS