[LIB]: Pass prefix and suffix to class__snprintf in class__print

Fixing a regression introduced when doing the class__snprintf introduction out
of class__print, namely this one:

--- ctracer_sock.c.old  2007-01-12 14:57:56.000000000 -0200
+++ ctracer.c   2007-01-12 15:00:21.000000000 -0200
@@ -1668,7 +1668,7 @@
 };

   /* /pub/scm/linux/kernel/git/acme/linux-2.6/include/linux/fs.h:1050 */
  -struct {
  +typedef struct {
          size_t              written;     /*     0     4 */
          size_t              count;       /*     4     4 */
          union {
  @@ -1676,7 +1676,7 @@
                  void *      data;        /*           4 */
          } arg;                           /*     8     4 */
          int                 error;       /*    12     4 */
  -}; /* size: 16, cachelines: 1 */
  +} read_descriptor_t; /* size: 16, cachelines: 1 */
      /* last cacheline: 16 bytes */

   typedef int (*sk_read_actor_t)(read_descriptor_t *, struct sk_buff *, unsigned int, size_t);

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2007-01-12 15:03:59 -02:00
parent 0661f26f9f
commit bc58353565
1 changed files with 1 additions and 1 deletions

View File

@ -1921,7 +1921,7 @@ static void class__print(const struct tag *tag, const struct cu *cu,
char bf[32768];
class__snprintf(tag__class(tag), cu, bf, sizeof(bf),
NULL, NULL, 0, 26, 23, 1);
prefix, suffix, 0, 26, 23, 1);
fputs(bf, stdout);
}