]> granicus.if.org Git - php/commitdiff
format string fix and \n at the end of the message is not needed
authorAndrey Hristov <andrey@php.net>
Thu, 28 Aug 2003 20:29:13 +0000 (20:29 +0000)
committerAndrey Hristov <andrey@php.net>
Thu, 28 Aug 2003 20:29:13 +0000 (20:29 +0000)
ext/sybase_ct/php_sybase_ct.c

index 19e813f511db38f6ef212b82af4feb2c19a9a340..ca4b915cb96c84522c736366d217e357d583e1ff 100644 (file)
@@ -1437,7 +1437,7 @@ static void php_sybase_query (INTERNAL_FUNCTION_PARAMETERS, int buffered)
                
                /* Retry deadlocks up until deadlock_retry_count times */               
                if (sybase_ptr->deadlock && SybCtG(deadlock_retry_count) != -1 && ++deadlock_count > SybCtG(deadlock_retry_count)) {
-                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase:  Retried deadlock %d times [max: %d], giving up\n", deadlock_count- 1, SybCtG(deadlock_retry_count));
+                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase:  Retried deadlock %d times [max: %d], giving up", deadlock_count- 1, SybCtG(deadlock_retry_count));
                        if (result != NULL) {
                                _free_sybase_result(result);
                        }
@@ -1904,7 +1904,7 @@ PHP_FUNCTION(sybase_result)
        }
 
        if (Z_LVAL_PP(row) < 0 || Z_LVAL_PP(row) >= result->num_rows) {
-               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase:  Bad row offset (%d)", Z_LVAL_PP(row));
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase:  Bad row offset (%ld)", Z_LVAL_PP(row));
                RETURN_FALSE;
        }