{"action":"opened","number":299,"pull_request":{"url":"https://api.github.com/repos/texane/stlink/pulls/299","id":30871771,"html_url":"https://github.com/texane/stlink/pull/299","diff_url":"https://github.com/texane/stlink/pull/299.diff","patch_url":"https://github.com/texane/stlink/pull/299.patch","issue_url":"https://api.github.com/repos/texane/stlink/issues/299","number":299,"state":"open","locked":false,"title":"Minor error reporting tweaks and redundant  includes removal","user":{"login":"tyszja","id":11367088,"avatar_url":"https://avatars.githubusercontent.com/u/11367088?v=3","gravatar_id":"","url":"https://api.github.com/users/tyszja","html_url":"https://github.com/tyszja","followers_url":"https://api.github.com/users/tyszja/followers","following_url":"https://api.github.com/users/tyszja/following{/other_user}","gists_url":"https://api.github.com/users/tyszja/gists{/gist_id}","starred_url":"https://api.github.com/users/tyszja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyszja/subscriptions","organizations_url":"https://api.github.com/users/tyszja/orgs","repos_url":"https://api.github.com/users/tyszja/repos","events_url":"https://api.github.com/users/tyszja/events{/privacy}","received_events_url":"https://api.github.com/users/tyszja/received_events","type":"User","site_admin":false},"body":"Hi,\r\nI've faced multiple error messages while still using compiled tools successfully. This was confusing. Those errors were thrown to stderr twice by stlinkv1 specific functions while stlinkv2 was used. I've removed duplicated error message and replaced the other one with logging macro for consistency with the rest of logs in this file. If additional device opening error needs to be thrown I think it's up to 'stlink_v1_open' and 'stlink_open_usb' callers to log it if both calls fail.\r\n\r\nJust letting you know if you're interested.\r\n\r\nRegards.","created_at":"2015-03-10T17:15:29Z","updated_at":"2015-03-10T17:15:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/texane/stlink/pulls/299/commits","review_comments_url":"https://api.github.com/repos/texane/stlink/pulls/299/comments","review_comment_url":"https://api.github.com/repos/texane/stlink/pulls/comments{/number}","comments_url":"https://api.github.com/repos/texane/stlink/issues/299/comments","statuses_url":"https://api.github.com/repos/texane/stlink/statuses/c6afdd500ceecf106fe177f2017bfada142f6d3a","head":{"label":"tyszja:master","ref":"master","sha":"c6afdd500ceecf106fe177f2017bfada142f6d3a","user":{"login":"tyszja","id":11367088,"avatar_url":"https://avatars.githubusercontent.com/u/11367088?v=3","gravatar_id":"","url":"https://api.github.com/users/tyszja","html_url":"https://github.com/tyszja","followers_url":"https://api.github.com/users/tyszja/followers","following_url":"https://api.github.com/users/tyszja/following{/other_user}","gists_url":"https://api.github.com/users/tyszja/gists{/gist_id}","starred_url":"https://api.github.com/users/tyszja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyszja/subscriptions","organizations_url":"https://api.github.com/users/tyszja/orgs","repos_url":"https://api.github.com/users/tyszja/repos","events_url":"https://api.github.com/users/tyszja/events{/privacy}","received_events_url":"https://api.github.com/users/tyszja/received_events","type":"User","site_admin":false},"repo":{"id":31821461,"name":"stlink","full_name":"tyszja/stlink","owner":{"login":"tyszja","id":11367088,"avatar_url":"https://avatars.githubusercontent.com/u/11367088?v=3","gravatar_id":"","url":"https://api.github.com/users/tyszja","html_url":"https://github.com/tyszja","followers_url":"https://api.github.com/users/tyszja/followers","following_url":"https://api.github.com/users/tyszja/following{/other_user}","gists_url":"https://api.github.com/users/tyszja/gists{/gist_id}","starred_url":"https://api.github.com/users/tyszja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyszja/subscriptions","organizations_url":"https://api.github.com/users/tyszja/orgs","repos_url":"https://api.github.com/users/tyszja/repos","events_url":"https://api.github.com/users/tyszja/events{/privacy}","received_events_url":"https://api.github.com/users/tyszja/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tyszja/stlink","description":"stm32 discovery line linux programmer","fork":true,"url":"https://api.github.com/repos/tyszja/stlink","forks_url":"https://api.github.com/repos/tyszja/stlink/forks","keys_url":"https://api.github.com/repos/tyszja/stlink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tyszja/stlink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tyszja/stlink/teams","hooks_url":"https://api.github.com/repos/tyszja/stlink/hooks","issue_events_url":"https://api.github.com/repos/tyszja/stlink/issues/events{/number}","events_url":"https://api.github.com/repos/tyszja/stlink/events","assignees_url":"https://api.github.com/repos/tyszja/stlink/assignees{/user}","branches_url":"https://api.github.com/repos/tyszja/stlink/branches{/branch}","tags_url":"https://api.github.com/repos/tyszja/stlink/tags","blobs_url":"https://api.github.com/repos/tyszja/stlink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tyszja/stlink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tyszja/stlink/git/refs{/sha}","trees_url":"https://api.github.com/repos/tyszja/stlink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tyszja/stlink/statuses/{sha}","languages_url":"https://api.github.com/repos/tyszja/stlink/languages","stargazers_url":"https://api.github.com/repos/tyszja/stlink/stargazers","contributors_url":"https://api.github.com/repos/tyszja/stlink/contributors","subscribers_url":"https://api.github.com/repos/tyszja/stlink/subscribers","subscription_url":"https://api.github.com/repos/tyszja/stlink/subscription","commits_url":"https://api.github.com/repos/tyszja/stlink/commits{/sha}","git_commits_url":"https://api.github.com/repos/tyszja/stlink/git/commits{/sha}","comments_url":"https://api.github.com/repos/tyszja/stlink/comments{/number}","issue_comment_url":"https://api.github.com/repos/tyszja/stlink/issues/comments{/number}","contents_url":"https://api.github.com/repos/tyszja/stlink/contents/{+path}","compare_url":"https://api.github.com/repos/tyszja/stlink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tyszja/stlink/merges","archive_url":"https://api.github.com/repos/tyszja/stlink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tyszja/stlink/downloads","issues_url":"https://api.github.com/repos/tyszja/stlink/issues{/number}","pulls_url":"https://api.github.com/repos/tyszja/stlink/pulls{/number}","milestones_url":"https://api.github.com/repos/tyszja/stlink/milestones{/number}","notifications_url":"https://api.github.com/repos/tyszja/stlink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tyszja/stlink/labels{/name}","releases_url":"https://api.github.com/repos/tyszja/stlink/releases{/id}","created_at":"2015-03-07T17:55:23Z","updated_at":"2015-03-07T18:51:49Z","pushed_at":"2015-03-07T18:51:49Z","git_url":"git://github.com/tyszja/stlink.git","ssh_url":"git@github.com:tyszja/stlink.git","clone_url":"https://github.com/tyszja/stlink.git","svn_url":"https://github.com/tyszja/stlink","homepage":"","size":13750,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"texane:master","ref":"master","sha":"873fb352fcad4cf9ff8380d3bcda9242742acb3f","user":{"login":"texane","id":73247,"avatar_url":"https://avatars.githubusercontent.com/u/73247?v=3","gravatar_id":"","url":"https://api.github.com/users/texane","html_url":"https://github.com/texane","followers_url":"https://api.github.com/users/texane/followers","following_url":"https://api.github.com/users/texane/following{/other_user}","gists_url":"https://api.github.com/users/texane/gists{/gist_id}","starred_url":"https://api.github.com/users/texane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/texane/subscriptions","organizations_url":"https://api.github.com/users/texane/orgs","repos_url":"https://api.github.com/users/texane/repos","events_url":"https://api.github.com/users/texane/events{/privacy}","received_events_url":"https://api.github.com/users/texane/received_events","type":"User","site_admin":false},"repo":{"id":1253879,"name":"stlink","full_name":"texane/stlink","owner":{"login":"texane","id":73247,"avatar_url":"https://avatars.githubusercontent.com/u/73247?v=3","gravatar_id":"","url":"https://api.github.com/users/texane","html_url":"https://github.com/texane","followers_url":"https://api.github.com/users/texane/followers","following_url":"https://api.github.com/users/texane/following{/other_user}","gists_url":"https://api.github.com/users/texane/gists{/gist_id}","starred_url":"https://api.github.com/users/texane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/texane/subscriptions","organizations_url":"https://api.github.com/users/texane/orgs","repos_url":"https://api.github.com/users/texane/repos","events_url":"https://api.github.com/users/texane/events{/privacy}","received_events_url":"https://api.github.com/users/texane/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/texane/stlink","description":"stm32 discovery line linux programmer","fork":false,"url":"https://api.github.com/repos/texane/stlink","forks_url":"https://api.github.com/repos/texane/stlink/forks","keys_url":"https://api.github.com/repos/texane/stlink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/texane/stlink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/texane/stlink/teams","hooks_url":"https://api.github.com/repos/texane/stlink/hooks","issue_events_url":"https://api.github.com/repos/texane/stlink/issues/events{/number}","events_url":"https://api.github.com/repos/texane/stlink/events","assignees_url":"https://api.github.com/repos/texane/stlink/assignees{/user}","branches_url":"https://api.github.com/repos/texane/stlink/branches{/branch}","tags_url":"https://api.github.com/repos/texane/stlink/tags","blobs_url":"https://api.github.com/repos/texane/stlink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/texane/stlink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/texane/stlink/git/refs{/sha}","trees_url":"https://api.github.com/repos/texane/stlink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/texane/stlink/statuses/{sha}","languages_url":"https://api.github.com/repos/texane/stlink/languages","stargazers_url":"https://api.github.com/repos/texane/stlink/stargazers","contributors_url":"https://api.github.com/repos/texane/stlink/contributors","subscribers_url":"https://api.github.com/repos/texane/stlink/subscribers","subscription_url":"https://api.github.com/repos/texane/stlink/subscription","commits_url":"https://api.github.com/repos/texane/stlink/commits{/sha}","git_commits_url":"https://api.github.com/repos/texane/stlink/git/commits{/sha}","comments_url":"https://api.github.com/repos/texane/stlink/comments{/number}","issue_comment_url":"https://api.github.com/repos/texane/stlink/issues/comments{/number}","contents_url":"https://api.github.com/repos/texane/stlink/contents/{+path}","compare_url":"https://api.github.com/repos/texane/stlink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/texane/stlink/merges","archive_url":"https://api.github.com/repos/texane/stlink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/texane/stlink/downloads","issues_url":"https://api.github.com/repos/texane/stlink/issues{/number}","pulls_url":"https://api.github.com/repos/texane/stlink/pulls{/number}","milestones_url":"https://api.github.com/repos/texane/stlink/milestones{/number}","notifications_url":"https://api.github.com/repos/texane/stlink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/texane/stlink/labels{/name}","releases_url":"https://api.github.com/repos/texane/stlink/releases{/id}","created_at":"2011-01-14T09:19:12Z","updated_at":"2015-03-09T22:28:00Z","pushed_at":"2015-02-09T21:00:30Z","git_url":"git://github.com/texane/stlink.git","ssh_url":"git@github.com:texane/stlink.git","clone_url":"https://github.com/texane/stlink.git","svn_url":"https://github.com/texane/stlink","homepage":"","size":14594,"stargazers_count":571,"watchers_count":571,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":203,"mirror_url":null,"open_issues_count":116,"forks":203,"open_issues":116,"watchers":571,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/texane/stlink/pulls/299"},"html":{"href":"https://github.com/texane/stlink/pull/299"},"issue":{"href":"https://api.github.com/repos/texane/stlink/issues/299"},"comments":{"href":"https://api.github.com/repos/texane/stlink/issues/299/comments"},"review_comments":{"href":"https://api.github.com/repos/texane/stlink/pulls/299/comments"},"review_comment":{"href":"https://api.github.com/repos/texane/stlink/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/texane/stlink/pulls/299/commits"},"statuses":{"href":"https://api.github.com/repos/texane/stlink/statuses/c6afdd500ceecf106fe177f2017bfada142f6d3a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":3,"deletions":9,"changed_files":1}}