)]}'
{"src/target/target.c":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"ec1d3f6abe883a91fdbac6caae49102b76ae5d55","unresolved":false,"context_lines":[{"line_number":2413,"context_line":"\t/* Align up to maximum bytes. The loop condition makes sure the next pass"},{"line_number":2414,"context_line":"\t * will have something to do with the size we leave to it. */"},{"line_number":2415,"context_line":"\tfor (size \u003d 1;"},{"line_number":2416,"context_line":"\t\t\tsize \u003c target_data_bits(target) / 8 \u0026\u0026 count \u003e\u003d size * 2 + (address \u0026 size);"},{"line_number":2417,"context_line":"\t\t\tsize *\u003d 2) {"},{"line_number":2418,"context_line":"\t\tif (address \u0026 size) {"},{"line_number":2419,"context_line":"\t\t\tint retval \u003d target_write_memory(target, address, size, 1, buffer);"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_5eb85974","line":2416,"updated":"2021-05-14 10:51:10.000000000","message":"target_data_bits() will be evaluated at each iteration.\nCall it only once before the loop and store it in a temporary variable","commit_id":"a3114611a8b1491dd86e92d6904d00e784baa032"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"ec1d3f6abe883a91fdbac6caae49102b76ae5d55","unresolved":false,"context_lines":[{"line_number":2476,"context_line":"\t/* Align up to maximum bytes. The loop condition makes sure the next pass"},{"line_number":2477,"context_line":"\t * will have something to do with the size we leave to it. */"},{"line_number":2478,"context_line":"\tfor (size \u003d 1;"},{"line_number":2479,"context_line":"\t\t\tsize \u003c target_data_bits(target) / 8 \u0026\u0026 count \u003e\u003d size * 2 + (address \u0026 size);"},{"line_number":2480,"context_line":"\t\t\tsize *\u003d 2) {"},{"line_number":2481,"context_line":"\t\tif (address \u0026 size) {"},{"line_number":2482,"context_line":"\t\t\tint retval \u003d target_read_memory(target, address, size, 1, buffer);"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_7ebd1d63","line":2479,"updated":"2021-05-14 10:51:10.000000000","message":"same here","commit_id":"a3114611a8b1491dd86e92d6904d00e784baa032"},{"author":{"_account_id":1000853,"name":"zapb","display_name":"Marc Schink","email":"dev@zapb.de","username":"zapb"},"change_message_id":"9f4bd932b6fd113717b896c0ff46e058086935c8","unresolved":false,"context_lines":[{"line_number":1506,"context_line":"\treturn 32;"},{"line_number":1507,"context_line":"}"},{"line_number":1508,"context_line":""},{"line_number":1509,"context_line":"unsigned target_data_bits(struct target *target)"},{"line_number":1510,"context_line":"{"},{"line_number":1511,"context_line":"\tif (target-\u003etype-\u003edata_bits)"},{"line_number":1512,"context_line":"\t\treturn target-\u003etype-\u003edata_bits(target);"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"aedf27f1_a45b7856","line":1509,"updated":"2021-05-25 19:22:12.000000000","message":"same","commit_id":"431b02d78c1477f8cb653e2cd525010176959b47"},{"author":{"_account_id":1000853,"name":"zapb","display_name":"Marc Schink","email":"dev@zapb.de","username":"zapb"},"change_message_id":"9f4bd932b6fd113717b896c0ff46e058086935c8","unresolved":false,"context_lines":[{"line_number":2409,"context_line":"\ttarget_addr_t address, uint32_t count, const uint8_t *buffer)"},{"line_number":2410,"context_line":"{"},{"line_number":2411,"context_line":"\tuint32_t size;"},{"line_number":2412,"context_line":"\tunsigned data_bytes \u003d target_data_bits(target) / 8;"},{"line_number":2413,"context_line":""},{"line_number":2414,"context_line":"\t/* Align up to maximum bytes. The loop condition makes sure the next pass"},{"line_number":2415,"context_line":"\t * will have something to do with the size we leave to it. */"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"aedf27f1_e4618002","line":2412,"updated":"2021-05-25 19:22:12.000000000","message":"same","commit_id":"431b02d78c1477f8cb653e2cd525010176959b47"},{"author":{"_account_id":1000853,"name":"zapb","display_name":"Marc Schink","email":"dev@zapb.de","username":"zapb"},"change_message_id":"9f4bd932b6fd113717b896c0ff46e058086935c8","unresolved":false,"context_lines":[{"line_number":2473,"context_line":"static int target_read_buffer_default(struct target *target, target_addr_t address, uint32_t count, uint8_t *buffer)"},{"line_number":2474,"context_line":"{"},{"line_number":2475,"context_line":"\tuint32_t size;"},{"line_number":2476,"context_line":"\tunsigned data_bytes \u003d target_data_bits(target) / 8;"},{"line_number":2477,"context_line":""},{"line_number":2478,"context_line":"\t/* Align up to maximum bytes. The loop condition makes sure the next pass"},{"line_number":2479,"context_line":"\t * will have something to do with the size we leave to it. */"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"aedf27f1_045fe445","line":2476,"updated":"2021-05-25 19:22:12.000000000","message":"same","commit_id":"431b02d78c1477f8cb653e2cd525010176959b47"}],"src/target/target.h":[{"author":{"_account_id":1000853,"name":"zapb","display_name":"Marc Schink","email":"dev@zapb.de","username":"zapb"},"change_message_id":"9f4bd932b6fd113717b896c0ff46e058086935c8","unresolved":false,"context_lines":[{"line_number":689,"context_line":" *"},{"line_number":690,"context_line":" * This routine is a wrapper for target-\u003etype-\u003edata_bits."},{"line_number":691,"context_line":" */"},{"line_number":692,"context_line":"unsigned target_data_bits(struct target *target);"},{"line_number":693,"context_line":""},{"line_number":694,"context_line":"/** Return the *name* of this targets current state */"},{"line_number":695,"context_line":"const char *target_state_name(struct target *target);"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"aedf27f1_444dec9a","line":692,"updated":"2021-05-25 19:22:12.000000000","message":"Please use \u0027unsigned int\u0027 as requested by the (updated) C coding style","commit_id":"431b02d78c1477f8cb653e2cd525010176959b47"}]}
