diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-17 19:12:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-17 19:12:21 +0100 |
commit | c85c8fcb9fad565da78e01248c12f662f6bc04c8 (patch) | |
tree | 243267d5088c9b49e8b907d68034f22dbad2b03d /src/netbeans.c | |
parent | 749f07c0db58d4f2fed2017f5a55bb053c9475ab (diff) | |
download | vim-git-c85c8fcb9fad565da78e01248c12f662f6bc04c8.tar.gz |
patch 8.1.0944: format of nbdbg() arguments is not checkedv8.1.0944
Problem: Format of nbdbg() arguments is not checked.
Solution: Add format attribute. Fix reported problems. (Dominique Pelle,
closes #3992)
Diffstat (limited to 'src/netbeans.c')
-rw-r--r-- | src/netbeans.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/netbeans.c b/src/netbeans.c index 2682d1c0b..e49797a32 100644 --- a/src/netbeans.c +++ b/src/netbeans.c @@ -934,7 +934,7 @@ nb_partialremove(linenr_T lnum, colnr_T first, colnr_T last) { mch_memmove(newtext, oldtext, first); STRMOVE(newtext + first, oldtext + lastbyte + 1); - nbdebug((" NEW LINE %d: %s\n", lnum, newtext)); + nbdebug((" NEW LINE %ld: %s\n", lnum, newtext)); ml_replace(lnum, newtext, FALSE); } } @@ -1166,7 +1166,7 @@ nb_do_cmd( return FAIL; } first = *pos; - nbdebug((" FIRST POS: line %d, col %d\n", + nbdebug((" FIRST POS: line %ld, col %d\n", first.lnum, first.col)); pos = off2pos(buf->bufp, off+count-1); if (!pos) @@ -1178,7 +1178,7 @@ nb_do_cmd( return FAIL; } last = *pos; - nbdebug((" LAST POS: line %d, col %d\n", + nbdebug((" LAST POS: line %ld, col %d\n", last.lnum, last.col)); del_from_lnum = first.lnum; del_to_lnum = last.lnum; @@ -1264,7 +1264,7 @@ nb_do_cmd( } } - nbdebug((" Deleting lines %d through %d\n", + nbdebug((" Deleting lines %ld through %ld\n", del_from_lnum, del_to_lnum)); curwin->w_cursor.lnum = del_from_lnum; curwin->w_cursor.col = 0; @@ -1540,7 +1540,7 @@ nb_do_cmd( { if (!buf->bufp->b_netbeans_file) { - nbdebug(("E658: NetBeans connection lost for buffer %ld\n", buf->bufp->b_fnum)); + nbdebug(("E658: NetBeans connection lost for buffer %d\n", buf->bufp->b_fnum)); semsg(_("E658: NetBeans connection lost for buffer %d"), buf->bufp->b_fnum); } |