[kgtp] r916 committed - Fix the bug that set the id of FID_PAGE_BEGIN inside gtp_rb.

  • From: kgtp@xxxxxxxxxxxxxx
  • To: kgtp@xxxxxxxxxxxxx
  • Date: Tue, 14 Feb 2012 00:03:58 +0000

Revision: 916
Author:   teawater
Date:     Mon Feb 13 16:02:45 2012
Log:      Fix the bug that set the id of FID_PAGE_BEGIN inside gtp_rb.

http://code.google.com/p/kgtp/source/detail?r=916

Modified:
 /trunk/UPDATE
 /trunk/gtp_rb.c

=======================================
--- /trunk/UPDATE       Mon Feb  6 03:51:07 2012
+++ /trunk/UPDATE       Mon Feb 13 16:02:45 2012
@@ -5,6 +5,8 @@

 * Make getgtprsp.pl support all special trace state variables.

+* Fix the bug that set the id of FID_PAGE_BEGIN inside gtp_rb.
+
 *** 20120131

 * https://lkml.org/lkml/2012/1/31/215
=======================================
--- /trunk/gtp_rb.c     Sat Feb  4 00:49:25 2012
+++ /trunk/gtp_rb.c     Mon Feb 13 16:02:45 2012
@@ -211,7 +211,7 @@
                if (id) {
                        /* Need insert a FID_PAGE_BEGIN.  */
                        FID(rb->w) = FID_PAGE_BEGIN;
-                       *((u64 *)rb->w + FID_SIZE) = id;
+                       *((u64 *)(rb->w + FID_SIZE)) = id;
                        rb->w += FRAME_ALIGN(GTP_FRAME_PAGE_BEGIN_SIZE);
                }
        }

Other related posts:

  • » [kgtp] r916 committed - Fix the bug that set the id of FID_PAGE_BEGIN inside gtp_rb. - kgtp