@@ -158,14 +158,9 @@ pub const Register = struct {
158158
159159 pub fn format (
160160 register : Register ,
161- comptime fmt : []const u8 ,
162- options : std.fmt.FormatOptions ,
163- writer : anytype ,
161+ writer : * std.Io.Writer ,
164162 ) ! void {
165- _ = fmt ;
166- _ = options ;
167-
168- try writer .print ("Register: id={} struct_id={?} name='{s}' size_bits={} offset_bytes={} desc='{?s}'" , .{
163+ try writer .print ("Register: id={f} struct_id={?f} name='{s}' size_bits={} offset_bytes={} desc='{?s}'" , .{
169164 register .id ,
170165 register .struct_id ,
171166 register .name ,
@@ -703,7 +698,7 @@ pub fn get_struct_decl_by_name(db: *Database, allocator: Allocator, parent: Stru
703698}
704699
705700pub fn get_peripheral_by_struct_id (db : * Database , allocator : Allocator , struct_id : StructID ) ! ? Peripheral {
706- log .debug ("get_peripheral_by_struct_id: strut_id={}" , .{struct_id });
701+ log .debug ("get_peripheral_by_struct_id: strut_id={f }" , .{struct_id });
707702 const query = std .fmt .comptimePrint (
708703 \\SELECT {s}
709704 \\FROM peripherals
@@ -718,7 +713,7 @@ pub fn get_peripheral_by_struct_id(db: *Database, allocator: Allocator, struct_i
718713}
719714
720715pub fn get_struct_decl_by_struct_id (db : * Database , allocator : Allocator , struct_id : StructID ) ! ? StructDecl {
721- log .debug ("get_struct_decl_by_struct_id: struct_id={}" , .{struct_id });
716+ log .debug ("get_struct_decl_by_struct_id: struct_id={f }" , .{struct_id });
722717 const query = std .fmt .comptimePrint (
723718 \\SELECT {s}
724719 \\FROM struct_decls
@@ -969,7 +964,7 @@ pub fn get_nested_struct_fields_with_calculated_size(
969964 const nested_struct_fields = try db .get_nested_struct_fields (gpa , struct_id );
970965 defer gpa .free (nested_struct_fields );
971966
972- log .debug ("nested_struct_fields.len={} struct_id={}" , .{ nested_struct_fields .len , struct_id });
967+ log .debug ("nested_struct_fields.len={} struct_id={f }" , .{ nested_struct_fields .len , struct_id });
973968
974969 var size_cache : std .AutoArrayHashMap (StructID , u64 ) = .init (gpa );
975970 defer size_cache .deinit ();
@@ -982,7 +977,7 @@ pub fn get_nested_struct_fields_with_calculated_size(
982977
983978 var depth : u8 = 0 ;
984979 const size_bytes = try db .recursively_calculate_struct_size (& depth , & size_cache , gpa , nsf .struct_id );
985- std .log .debug ("Calculated struct size: struct_id={} size_bytes={}" , .{ nsf .struct_id , size_bytes });
980+ std .log .debug ("Calculated struct size: struct_id={f } size_bytes={}" , .{ nsf .struct_id , size_bytes });
986981 nsf .size_bytes = if (size_bytes > 0 ) size_bytes else continue ;
987982 try ret .append (gpa , nsf .* );
988983 }
0 commit comments