From: Philippe Proulx Date: Tue, 25 Nov 2014 21:39:16 +0000 (-0500) Subject: Fix: _write_field_enum() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=82c57c9c5176a2032f9f5f6bfc4feae5afc0afca;p=deliverable%2Fbarectf.git Fix: _write_field_enum() --- diff --git a/barectf/cli.py b/barectf/cli.py index d497386..ae37293 100644 --- a/barectf/cli.py +++ b/barectf/cli.py @@ -876,7 +876,8 @@ class BarectfCodeGenerator: # src_name: C source integer # enum: TSDL enumeration def _write_field_enum(self, fname, src_name, enum, scope_prefix=None): - return self._write_field_obj(fname, src_name, enum.integer) + return self._write_field_obj(fname, src_name, enum.integer, + scope_prefix) # Returns the C lines for writing a TSDL floating point number field. #